Commit Graph

1978 Commits

Author SHA1 Message Date
mdmunir
d437c4bd37 Add session migration 2016-04-09 20:45:59 +03:00
Angel Guevara
b49488b1f7 Enh new property skipUpdateOnClean for AttributeBehavior (#11302)
Fixes #11002: `AttributeBehavior::$skipUpdateOnClean` which determines whether to skip a behavior when the behavior owner has not been modified
2016-04-09 15:38:41 +03:00
Ivaylo Ushev
5921865459 Fixed: #11270 - Error when link record in one to many relation. (#11301)
Fixed: #11270 - Error when link record in one to many relation.
2016-04-08 10:36:38 +03:00
SilverFire - Dmitry Naumenko
3b32359fa9 Updated ActiveRecordTestTrait to ensure nested relations work as expected 2016-04-07 14:50:09 +03:00
Mikk Tendermann
2f9395bbd6 fix #11299 2016-04-07 10:52:43 +03:00
Aleksei Vesnin
6745bdb65e Fixed yii\widgets\ActiveField to handle inputs AJAX validation with changed ID properly.
Tests for `yii\widgets\ActiveField` with custom input ID.
2016-04-06 23:08:23 +03:00
Angel Guevara
b923adf75c Enh: Support for useTablePrefix parameter in migrate command
Fixes #11166: migrate command new option `useTablePrefix`
2016-04-06 13:37:37 +03:00
Tom Worster
c455a3c54b Security component enhancements
- Added tests for random key generation speed.
- Better generateRandomKey() performance for small reads because of using fopen + buffered read and local caching of source detection.
- Use /dev/random on FreeBSD.
2016-04-06 01:49:07 +03:00
Alexander Makarov
f312163258 Fixes #11220: NumberValidator now handles objects properly 2016-04-06 00:53:10 +03:00
Angel Guevara
49aec24ae1 Enh: Migrate command now supports foreign keys
Fixes #11207: migrate command can create foreign keys
2016-04-05 01:02:52 +03:00
Yaroslav Lukyanov
db1a96d876 Added tests for #8920, used 16bit integers to avoid out of range error 2016-04-05 00:57:52 +03:00
Misbahul D Munir
0e17d652dc Enhanced RBAC Rule assignment
* #11254 Enhanced RBAC Rule assignment

* Enhanced RBAC Rule assignment
2016-04-05 00:52:04 +03:00
Robbert Jan van de Velde
d438c03dbc Bug #11223: Fixed returning an empty array when DbManager::getRolesByUser() was called on a user with user id 0
* Bug #11223: Fixed returning an empty array when DbManager::getRolesByUser() was called on a user with user id 0 (VirtualRJ)

* Added unit tests for #11223
2016-04-01 22:28:23 +03:00
SilverFire - Dmitry Naumenko
499ee6de9e Added CH test sentence to InflectorTest 2016-03-31 11:53:51 +03:00
Alexander Makarov
cfbe50e96d Fixes #11026: Fixed StringHelper::truncateWords() to count words properly for non-English text 2016-03-30 00:26:56 +03:00
githubjeka
8e1ec62191 update BooleanValidator 2016-03-29 16:38:17 +03:00
Carsten Brandt
608066b05f fixed ActiveForm tests for output buffering
related to  #8779, and 7dc984d359
2016-03-28 04:55:15 +02:00
Daniel Gomez Pan
7dc984d359 Fixed #8779: Automatically set enctype form option when using file input field 2016-03-27 23:47:19 +03:00
Angel Guevara
3cbd64547a Additional phpdoc for #11187 2016-03-27 23:38:23 +03:00
particleflux
1dfab19b77 Fixes #11137: Added weak ETag support to yii\filters\HttpCache. It could be turned on via setting $weakEtag to true 2016-03-25 23:39:29 +03:00
Damian Zajkowski
3fb85fb84e Fixing VarDumper for throwing PHP Fatal when dumping __PHP_Incomplete_Class. #11196 issue. 2016-03-25 15:54:15 +01:00
Alexander Makarov
4cb0c1b55c Fixed tests 2016-03-25 14:08:56 +03:00
Sam Mousa
c7436909f4 Added optional $checkHeader param to loginRequired for checking the Accept header; defaults to true.
Added changelog line.

Fixed DbSessionTest

Added version annotations.

Improvements to phpdoc and whitespace.
2016-03-23 00:08:01 +02:00
SilverFire - Dmitry Naumenko
5db2afbaeb Code style fixed, PHPDoc updated 2016-03-22 23:31:23 +02:00
mdmunir
67b5f4ea19 fix for unsafe validator
Closes #8145 #8139 #11153
2016-03-22 23:31:16 +02:00
Chris Harris
2fe6cee8bf Added SQLite bigpk test. Moved schema builder patterns spreadsheet to docs/internals folder. 2016-03-21 23:39:54 -07:00
Chris Harris
0b2db6f18a Fixing tests 2016-03-21 04:29:45 -07:00
Chris Harris
7bfcd0c427 Fixing tests 2016-03-21 04:14:38 -07:00
Chris Harris
0ba1f5bba5 Merge branch 'master' of git://github.com/yiisoft/yii2 into 9562-add-char-datatype 2016-03-21 04:01:31 -07:00
Chris Harris
d8d10229c6 Fixing tests 2016-03-21 03:59:27 -07:00
Dmitry Naumenko
d85e0eb80d Merge pull request #11150 from yiisoft/11139-each-validator-attribute-value
EachValidator injects specific attribute value in error message
2016-03-21 12:35:43 +02:00
LAV45
6c2545c807 Added SVG image and SVG mimeType test to FileValidatorTest 2016-03-21 08:34:24 +02:00
SilverFire - Dmitry Naumenko
a0f9bf2893 Fixed yii\web\UploadedFile::getBaseName() to be multibyte-safe, added test 2016-03-20 23:45:08 +02:00
Taras Gudz
151610f611 Fixed #10784
Added tests for CheckboxColumn value
Updated CHANGELOG
2016-03-20 16:59:21 +02:00
SilverFire - Dmitry Naumenko
a0e614eb20 yii\validators\EachValidator injects specific attribute value in error message parameters
Closes #11139
2016-03-20 16:34:42 +02:00
LAV45
049ea37f77 Fixes #10993: Fixed yii\rbac\DbManager::removeAllRules() and yii\rbac\PhpManager::removeAllItems() 2016-03-16 01:53:48 +03:00
Alexander Makarov
c17f887583 Added StringHelper::countWords() that given a string returns number of words in it 2016-03-16 01:41:57 +03:00
Dmitry Khlystov
7eff23886c Fixes #10726: Added yii\rbac\ManagerInterface::canAddChild() 2016-03-15 22:43:27 +03:00
Chris Harris
b8e44b2f47 Merge branch 'master' of git://github.com/yiisoft/yii2 into 9562-add-char-datatype 2016-03-14 05:33:41 -07:00
SilverFire - Dmitry Naumenko
7229b3aa7d QueryBuilder::buildAndCondition() - added Expression value extraction
Updated CHANGELOG
Added test case for param binding in `or` condition

Closes #11093
2016-03-13 19:22:32 +02:00
CedricYii
2bd14098f9 Fix Expression parameter binding in 'And' clause 2016-03-13 19:19:48 +02:00
SilverFire - Dmitry Naumenko
976b9fe357 Updated ArrayHelperTest to test exceptions of ArrayHelper::isIn() and ::isSubset() 2016-03-10 16:39:21 +02:00
Klimov Paul
6066b63c6e UrlManagerTest fixed 2016-03-09 10:37:13 +02:00
SilverFire - Dmitry Naumenko
8e1ab29592 Changelog updated 2016-03-09 00:01:53 +02:00
Sam Mousa
c4e782725c Fixed cache key collision in yii\web\UrlManager::createUrl()
Closes #10935
2016-03-09 00:01:31 +02:00
Robbert Jan van de Velde
c7f365910d Fixed handling of intervals of 0 seconds in yii\i18n\Formatter::asDuration().
Added unit tests for handling 0 second intervals and numeric values for yii\i18n\Formatter::asDuration().

Closes #11038
2016-03-08 15:12:08 +02:00
Ni-san
77599dc179 fixes #11040: make copyDirectory method work correctly with parameter 'recursive' 2016-03-08 00:45:52 +06:00
Alexander Makarov
b2f16df9dc Fixed file header comment 2016-03-04 16:04:01 +03:00
Dmitry Naumenko
857eee2451 Merge pull request #10870 from pana1990/10840-add-shorcuts-console
WIP #10840
2016-03-04 13:53:28 +02:00
Daniel Gomez Pan
1ce21cd927 WIP #10840: rename key 'alias' to '_aliases' 2016-02-27 23:26:34 +01:00