Commit Graph

5523 Commits

Author SHA1 Message Date
Klimov Paul
0d48f1041e Fixed yii\db\Command::getRawSql() unable to parse params specified without colon (':') 2015-06-02 13:45:28 +03:00
Carsten Brandt
0959b5d28e updated docs about dirty attributes
fixes #8619
2015-06-01 21:26:47 +02:00
Carsten Brandt
0802d3eb60 added more detailed comment for #8556 2015-06-01 15:44:07 +02:00
mpstegeman
e8ed316520 Correct tokens in NL translation of the StringValidator->tooLong message 2015-06-01 13:32:31 +02:00
Alexander Makarov
816ebd1e17 Additional phpdoc and minor code style fixes 2015-05-31 14:17:04 +03:00
Alexander Makarov
67658cf57d Replaced static with $this in phpdoc since current IDEs are finally able to handle it correctly 2015-05-31 13:39:30 +03:00
Brandon Kelly
c339ed2949 Fixes #7764: \yii\helpers\ArrayHelper::toArray() wasn't passing $recursive to Arrayable::toArray 2015-05-31 13:09:16 +03:00
Alexander Makarov
acb7b2ebbb Fixes #8556: Extracted yii\web\User::getAuthManager() method 2015-05-31 12:46:38 +03:00
Philippe Gaultier
4851d7f9e3 Fixes #8574: Added yii\console\controllers\MessageController support .pot file creation 2015-05-31 12:40:46 +03:00
Qiang Xue
07bcc8fda1 Fixes #8595: Fixed yii\rbac\DbManager::checkAccessFromCache() to check against auth items loaded in cache recursively 2015-05-29 10:42:32 -04:00
Klimov Paul
886e99be11 Fixed yii\web\Response::xSendFile() does not reset format 2015-05-29 16:29:06 +03:00
Klimov Paul
a849e815df Fixed yii\db\ActiveQuery produces incorrect SQL for aggregations, when sql field is set 2015-05-29 13:18:20 +03:00
Klimov Paul
0874ffac38 Fixed yii\helpers\Html::activeTextarea() does not allow value overriding via options 2015-05-29 12:31:52 +03:00
Carsten Brandt
aa5887fec7 added missing use statement to fix #8572
- added unit tests for timestamp behavior and insert with expression
- fixed issue #8572

close #8596
2015-05-29 01:37:47 +02:00
Klimov Paul
95ba06c01b Added ability to use aliases and domain relative URLs at yii\web\AssetManager::assetMap 2015-05-28 16:41:59 +03:00
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