Commit Graph

5508 Commits

Author SHA1 Message Date
Klimov Paul
8a506e1ee3 Added support for 'only' and 'except' options for yii\web\AssetManager::publish() 2015-05-27 17:01:05 +03:00
kidol
88371fb147 Trigger garbage collection in FileCache
close #8569
2015-05-27 13:05:51 +02:00
Carsten Brandt
47bcd020ff fixed bug in console controller
pass correct action name to options when $id is empty (default action)
2015-05-27 12:47:09 +02:00
Klimov Paul
5c68dde13c CHANGELOG.md fixed 2015-05-27 12:01:46 +03:00
Klimov Paul
d4d972b535 Merge branch '6043-html-arrays'
Conflicts:
	framework/CHANGELOG.md
2015-05-27 11:56:58 +03:00
Mohamad Mohebifar
b2e8bf2552 Update PHPDoc Comment 2015-05-26 15:47:11 +04:30
Klimov Paul
467596633d Code optimization 2015-05-26 12:00:28 +03:00
Klimov Paul
51a442d6c8 Fixed yii\db\ActiveRecord does not updates attribute specified at optimisticLock() after save 2015-05-26 11:53:34 +03:00
John Was
c73ad6573d updated changelog [ci skip] 2015-05-24 23:33:55 +02:00
John Was
57db031d1c Merge branch 'master' into 7374-inserting-ar-without-values 2015-05-24 23:29:40 +02:00
John Was
a63fc2ff59 properly quote sequence name in Schema::getLastInsertId()
fixes #8483
close #8515
2015-05-21 22:42:34 +02:00
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
Klimov Paul
402244bfd5 Issue #6043 added to CHANGELOG.md 2015-05-18 12:50:58 +03:00
Klimov Paul
0a7191dbfe Preserving of the named key classes at yii\helpers\Html::addCssClass() provided 2015-05-18 12:48:51 +03:00
Klimov Paul
41f6a6e558 Specification for 'class' and 'style' in array format added to yii\helpers\Html 2015-05-18 12:14:57 +03: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