Commit Graph

5490 Commits

Author SHA1 Message Date
Carsten Brandt
1fe171b328 only close output buffer if it is still open
Pjax did alredy close it before ExitException

fixes #8506
2015-05-21 14:22:53 +02:00
Klimov Paul
563deea02c yii\widgets\ActiveField now uses corresponding methods for default parts rendering 2015-05-20 12:35:42 +03:00
Klimov Paul
0f04af1af9 Added support to automatically set the maxlength attribute for Html::activeTextArea() and Html::activePassword() 2015-05-20 12:05:53 +03:00
Klimov Paul
b57b994a75 Fixed missing error suppression operator at yii\web\AssetConverter::convert() 2015-05-20 11:08:14 +03:00
Klimov Paul
68351e7d8f yii\db\ActiveQuery::removeDuplicatedModels() throws exception if model primary key is empty 2015-05-19 10:11:09 +03:00
Carsten Brandt
d5693cfe01 small improvements of Model phpdoc 2015-05-19 01:16:47 +02:00
Andrew Potter
a0cc77d78d Update Model.php
close #8463
2015-05-19 01:16:30 +02:00
Carsten Brandt
3c2bd76236 allow negative dates for date formatter
fixes #8451
2015-05-18 02:14:14 +02:00
Luke Briner
271a86aff3 Extend description
Help users understand the concept of massive assignment without relying on the Guide by extending the description for this type.
2015-05-17 13:21:29 +01:00
Nghia Nguyen
968d59cd48 Add property $linkOptions into LinkSorter widget
close #8444
2015-05-17 00:39:24 +02:00
Alexander Makarov
7a894578c6 Merge pull request #8435 from yiisoft/hash-comparison
ensure primary key string comparison is made identical
2015-05-16 10:34:35 +03:00
Carsten Brandt
b9916b1718 log the whole exception object to allow log targets to work with it
fixes #6354
made possible by #7305
2015-05-16 00:32:01 +02:00
Carsten Brandt
cca47b5469 ensure primary key string comparison is made identical
this is to avoid cases where string primary keys starting with '0e'.

See http://securityaffairs.co/wordpress/36732/hacking/php-hash-comparison-flaw.html

Other parts of Yii 2, escpecially the security and auth parts, are **not** affected.
2015-05-16 00:15:52 +02:00
Carsten Brandt
dd1995551c convert exceptions to string before saving log messages
fixes #7305
2015-05-15 18:49:38 +02:00
Qiang Xue
11ddb6da7d updated the finder. [skip ci] 2015-05-14 22:07:47 -04:00
Klimov Paul
219bf07dbb 'ctype' PHP extension added to the requirements 2015-05-14 16:41:36 +03:00
Klimov Paul
3a39f8ab72 yii\helpers\Html allows correct rendering of conditional comments containing !IE 2015-05-14 16:22:26 +03:00
Qiang Xue
0a12094505 Merge pull request #8403 from nkovacs/7707-trim-client-side
Fix client-side trim validator.
2015-05-13 18:26:25 -04:00
Klimov Paul
adb0460ee1 yii\console\controllers\MessageController now sorts created messages, even if there is no new one, while saving to PHP file 2015-05-13 16:08:36 +03:00
Klimov Paul
72ec914992 yii\console\controllers\MessageController improved allowing extraction of nested translator calls 2015-05-13 15:49:00 +03:00
Nikola Kovacs
f64d00bdf0 Fix client-side trim validator.
Subsequent validators now use the trimmed value instead of the original value.

fixes #7707
2015-05-13 14:18:27 +02:00
Mike Grigorieff
32bc19ae9b Updated web/Controller.php, simplified code design
close #8387
2015-05-13 12:53:44 +02:00
Klimov Paul
cad9fd9d20 yii\behaviors\TimestampBehavior::touch() throws an exception if owner is new record 2015-05-13 13:19:46 +03:00
Vadym Chenin
fc8ff4d08e Updated Ukrainian messages 2015-05-11 12:52:29 +03:00
Qiang Xue
8da1ebb449 prepare for next release. 2015-05-10 18:25:21 -04:00
Qiang Xue
cf0541fd59 2.0.4 release. 2015-05-10 16:09:47 -04:00
Qiang Xue
42fd70b2a1 exception message fix 2015-05-10 15:40:41 -04:00
Qiang Xue
4488dbbff7 build cleanup [skip ci] 2015-05-10 13:29:32 -04:00
Carsten Brandt
23b31d13de improve documentation of date validator
fixes #7514
2015-05-10 15:47:45 +02:00
Qiang Xue
78d3a856d3 Added Json::htmlEncode() to support safer JSON data encoding in HTML code 2015-05-09 23:38:17 -04:00
Jan Waś
ec920d2881 add missing schema name conditions for mssql
close #8046
fixes #6234
2015-05-10 00:31:43 +02:00
Carsten Brandt
f6b4601a83 improved doc message 2015-05-09 22:50:15 +02:00
Carsten Brandt
8f1811919f ensure error will always result in a failing HTTP status code
fixes #8326
proper fix for #7571 which did not work in all situations
2015-05-08 22:38:49 +02:00
Klimov Paul
6c10b91e57 Merge branch 'master' of github.com:yiisoft/yii2 2015-05-08 11:17:57 +03:00
Klimov Paul
582b7606ac Fixed yii\db\ActiveRelationTrait::populateRelation() fails when link refers to array string convertable object attribute 2015-05-08 11:17:35 +03:00
Carsten Brandt
49ac8d790a phpdoc: added link 2015-05-08 00:00:31 +02:00
Niek ten Hoopen
f9bf2cf818 Fix NL translation for "months ago"
close #8317
2015-05-07 17:38:14 +02:00
Evgeniy Tkachenko
632dbcf8c4 Updated comments in ManagerInterface
It is necessary that triggered tips of result on viewing variables.

close #8312
2015-05-07 11:37:55 +02:00
Carsten Brandt
486e7c59cf updated fxp/composer-asset-plugin version constraint
fixes #6253
2015-05-06 16:32:55 +02:00
Klimov Paul
8609311738 Fixed numeric keys in $_GET transformed to 0-based, if 'pretty URL' enabled 2015-05-06 17:09:31 +03:00
Carsten Brandt
6d14f6e74d phpdoc typo 2015-05-06 15:47:26 +02:00
Qiang Xue
5d4780da21 Fixes #8268: Allow QueryBuilder to recognize more variations of limit and offset values 2015-05-05 22:28:50 -04:00
Nikola Kovacs
048c89f15d Fix FragmentCache when enabled is false.
Fixes #8273
close #8274
2015-05-05 23:12:10 +02:00
Carsten Brandt
94d6843f8b added FragmentCache test for issue #8273 2015-05-05 23:12:10 +02:00
Qiang Xue
ebc089e6c2 Fixes #8194: Caching of the matched rules added to yii\web\UrlManager::createUrl() 2015-05-03 22:03:42 -04:00
laszlovl
8c22270591 db Command performance tweak 2015-05-03 21:03:55 +02:00
Nikola Kovacs
b31b9e2411 Fix conversion of ICU 'L' symbol.
L should not contain a leading zero.
Added a test for this too.

close #7761
2015-05-03 01:04:49 +02:00
Nikola Kovacs
3f24954659 Added min/max option to DateValidator.
Refs #7514
close #8115
2015-05-03 00:50:35 +02:00
Carsten Brandt
cf51d46a75 keep BC in internal implamentation of DateValidator
prepare for #8115
2015-05-03 00:24:57 +02:00
Carsten Brandt
1c41c2bd58 added DateValidator::$timestampAttributeTimeZone
this also makes DateValidator completly functional for validating values that include time.

issue #5053
2015-05-02 23:52:37 +02:00