Commit Graph

975 Commits

Author SHA1 Message Date
Qiang Xue
b9c97ff2aa Fixes #4938: When yii\db\ActiveQuery is used to build sub-queries, its WHERE clause is not correctly generated 2014-09-12 16:46:12 -04:00
Carsten Brandt
b5af2f6ab3 fixed size format plural rule to not format number itself
This fix ensures the format configured in the formatter class is used in the message instead
of the default ICU format.

fixes #4960
2014-09-10 21:53:29 +02:00
Qiang Xue
2150fa3239 Fixes #4970: joinWith() called by a relation was ignored by yii\db\ActiveQuery 2014-09-10 15:00:15 -04:00
Stephen Seliuk
70ed5d5c01 Test for fix 2014-09-10 14:49:12 -04:00
Carsten Brandt
2b38d6ab33 Merge branch 'master' into Erik-r-2359-formatter-refactored
* master: (22 commits)
  Fixes #4971: Fixed hardcoded table names in `viaTable` expression in model generator
  Fixed test break.
  Fixes #4955: Replaced callbacks with events for `ActiveForm`
  Fix brackets
  Rename `\yii\web\User` component param for consistency
  Html::button() type is `button` by default
  Fix bug in Estonian translation
  Typo fixed inside \yii\rest\CreateAction
  Fixed test break.
  Fixed test case.
  note about validation rules order
  Return a fixtures cleanup in case of a failing test
  Update finnish translation
  skip fixture controller test on HHVM
  Make unit tests cleanup a DB after finish
  Fixes #4945: Added `yii\test\ArrayFixture`
  added array fixture class
  minor doc adjustment [skip ci]
  Fixes #4948. Thanks, @johan162
  Fixes #4947
  ...

Conflicts:
	framework/UPGRADE.md
2014-09-10 19:26:04 +02:00
Carsten Brandt
c8f8f654ce fixed paragraph formatting 2014-09-10 18:41:25 +02:00
Qiang Xue
00e4d63e57 Fixed test break. 2014-09-09 22:51:26 -04:00
Qiang Xue
f50f840a55 Fixes #4955: Replaced callbacks with events for ActiveForm 2014-09-09 22:37:27 -04:00
Carsten Brandt
47648a4b9f final cleanup 2014-09-09 00:00:45 +02:00
Carsten Brandt
3f75728083 refactored size format 2014-09-08 23:34:51 +02:00
Carsten Brandt
916d2c182d ensure some BC
ensure some features that were recently added to formatter keep working after refactoring
2014-09-08 20:46:02 +02:00
Carsten Brandt
9418c9d236 unit tests and some locale depended fixes 2014-09-08 19:56:01 +02:00
Carsten Brandt
8d397e7f0e finished currency formatter 2014-09-08 18:03:13 +02:00
Qiang Xue
c4141f94f6 Fixed test break. 2014-09-08 08:19:43 -04:00
Qiang Xue
0a95c49149 Fixed test case. 2014-09-08 08:01:53 -04:00
Ragazzo
a5245ad048 added array fixture class 2014-09-07 18:29:16 -04:00
Carsten Brandt
98079b84a2 Merge branch 'master' into Erik-r-2359-formatter-refactored
* master: (1112 commits)
  Removed unused "use" statements
  Fixed array syntax
  Removed unused "use" statements
  Перевод runtime-handling-errors.md на русский язык
  Mark tests with problematic DBMS as skipped.
  Fixes #3511: Dropped `yii.allowAction()` and modified `yii.confirm()` in `yii.js` to support callbacks
  Update runtime-url-handling.md
  Update runtime-url-handling.md
  Update runtime-url-handling.md
  Update runtime-url-handling.md
  Update runtime-url-handling.md
  Create runtime-url-handling.md
  Fixed test break.
  Fixes #3410: yii.activeForm.js now supports adding/removing fields dynamically
  Fixes #2914: `ActiveForm::fieldConfig` will be merged recursively with the `$options` parameter in `ActiveForm::field()`
  Fixes #4936 [skip ci]
  Reverted/fixed some incorrect changes.
  missing "." sign
  Fixed formatting, initialized options array
  Fixed phpdoc
  ...

Conflicts:
	framework/CHANGELOG.md
	framework/base/Formatter.php
	framework/i18n/Formatter.php
	tests/unit/framework/base/FormatterTest.php
	tests/unit/framework/i18n/FormatterTest.php
2014-09-07 20:44:48 +02:00
Carsten Brandt
f8f0ff5445 moved formatter to i18n namespace 2014-09-07 20:40:34 +02:00
Carsten Brandt
065db64db3 finsihed formatter implementation
neads cleanup
2014-09-07 20:35:15 +02:00
Carsten Brandt
2a15ae12e6 refactored number formatting 2014-09-07 18:34:47 +02:00
Carsten Brandt
a4e86c02de date formatter iteration 2014-09-07 15:54:57 +02:00
Carsten Brandt
7f1f759472 small doc adjustments 2014-09-07 14:54:47 +02:00
Qiang Xue
a5b06b3468 Mark tests with problematic DBMS as skipped. 2014-09-06 20:22:28 -04:00
Qiang Xue
1cd42222fd Fixed test break. 2014-09-05 23:34:23 -04:00
Qiang Xue
61284ed405 Fixes #3910: Removed the container option from Html::checkbox() and Html::radio() 2014-09-04 14:36:30 -04:00
Alexander Makarov
00ca1cb4b3 Fixes #4914 2014-09-04 03:27:13 +04:00
Qiang Xue
f34b138aab Fixes #4225: Added ActiveForm::validateOnBlur and ActiveField::validateOnBlur 2014-09-03 16:14:54 -04:00
Mark
2410766f9f tests added for faker fixture controller 2014-09-01 17:33:15 +04:00
Mark
ff80968387 cache controller adjustments and improvements
related to #4792, close #4874
2014-09-01 13:07:56 +02:00
Carsten Brandt
92b958cd33 fixed return value of yii\web\Request::getPrefferedLanguage
ensure it is one of the input values

fixes #4880
2014-09-01 12:46:38 +02:00
Qiang Xue
fa0418f8a1 Fixes #4424: Added inline and mimeType options to all file downloading methods provided in yii\web\Response 2014-08-30 22:13:42 -04:00
Carsten Brandt
78b5c7db66 fixed boolean handling for PostgreSQL
- do not allow boolean values for integer columns
- use native boolean type with boolean values
- removed workaround that turned out to be wrong when schema and values
  are used correctly. Workaround resulted from wrong usage of boolean
  values before.

fixes #4672
2014-08-28 11:20:17 +02:00
Qiang Xue
3786440288 Fixes #4762: Reverted automatic ID fix. 2014-08-25 17:05:14 -04:00
Mark
033d66deac changed format of applying command to all 2014-08-20 20:48:58 -04:00
Mark
c7887b666c Added missed case in tests about append option 2014-08-20 20:48:58 -04:00
Mark
461576dc85 added other syntax for and tests for fixture controller 2014-08-20 20:48:58 -04:00
Klimov Paul
0bf16497af Convert 'caseless' option into 'caseSensitive' option at yii\helpers\BaseFileHelper::findFiles() 2014-08-19 17:33:11 +03:00
Klimov Paul
6461523aca Added 'caseless' option to yii\helpers\BaseFileHelper::findFiles() 2014-08-19 14:52:56 +03:00
Qiang Xue
9a68678ded Additional fix to #4728. 2014-08-16 22:30:28 -04:00
Qiang Xue
45dbbc39f6 Additional fix to #4728. 2014-08-16 22:25:55 -04:00
Alexander Makarov
4a9cc31828 Merge pull request #4728 from DaSourcerer/4372-httpcache-rfc7232-compliance
RFC 7232 Compliance for yii\filters\HttpCache
2014-08-17 01:21:21 +04:00
DaSourcerer
528e12f499 Fix for @covers annotations 2014-08-16 22:09:09 +02:00
DaSourcerer
83872ff853 CacheFilter test coverage 2014-08-16 21:50:28 +02:00
Carsten Brandt
cc1247f399 fixed HHVM test break 2014-08-15 16:22:59 +02:00
Carsten Brandt
f4a9646a22 more on HHVM compatibility 2014-08-15 16:04:02 +02:00
Carsten Brandt
62e7c3e9a6 fixed some inconsistnecies in HHVM tests
exclude parts that have different default values
2014-08-15 15:30:32 +02:00
Carsten Brandt
10512ff00d do not export mailer in BaseMailerTest message
fixes test break in HHVM due to export of a closure
2014-08-15 14:52:38 +02:00
Qiang Xue
88d38b7820 Fixes #4501: Renamed the constant YII_PATH to YII2_PATH 2014-08-14 22:17:05 -04:00
Carsten Brandt
3a4b32c4c1 fixed cubrid tests 2014-08-13 13:19:28 +02:00
Carsten Brandt
c4dc9470be created a test case to verify #4682 2014-08-13 12:45:20 +02:00