Commit Graph

1727 Commits

Author SHA1 Message Date
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
Carsten Brandt
8eaacd7320 added comment to datevalidator test
issue #8584
2015-05-28 12:05:39 +02:00
Alexander Makarov
a003a8fb48 Fixed broken postgresql test schema 2015-05-28 11:43:01 +03:00
Klimov Paul
bc6cc9bfce Unit test for yii\data\Pagination added 2015-05-27 15:48:18 +03:00
Klimov Paul
d4d972b535 Merge branch '6043-html-arrays'
Conflicts:
	framework/CHANGELOG.md
2015-05-27 11:56:58 +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
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
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
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
a73ce736ee improved unit test for date formatter 2015-05-18 02:15:59 +02:00
Carsten Brandt
3c2bd76236 allow negative dates for date formatter
fixes #8451
2015-05-18 02:14:14 +02:00
Carsten Brandt
c1fcd2956b added unit test for issue #8217
close #8217
2015-05-17 00:50:29 +02:00
John Was
94acb2e126 add unit tests to check lastInsertId 2015-05-16 11:47:31 +02:00
John Was
01345874a3 add working QueryBuilder test for Oracle 2015-05-16 11:31:52 +02:00
Klimov Paul
3a39f8ab72 yii\helpers\Html allows correct rendering of conditional comments containing !IE 2015-05-14 16:22:26 +03:00
Klimov Paul
72ec914992 yii\console\controllers\MessageController improved allowing extraction of nested translator calls 2015-05-13 15:49:00 +03:00
Qiang Xue
78d3a856d3 Added Json::htmlEncode() to support safer JSON data encoding in HTML code 2015-05-09 23:38:17 -04:00
Carsten Brandt
94d6843f8b added FragmentCache test for issue #8273 2015-05-05 23:12:10 +02:00
Klimov Paul
bc735bb390 FileHelper usage added to AssetControllerTest 2015-05-04 20:07:19 +03: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
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
Carsten Brandt
d60445c066 Add DateValidator::$timestampAttributeFormat
includes refactoring of the formatting method to fix some major timezone issues.

fixes #5053
close #6820
2015-05-01 18:53:28 +02:00
Carsten Brandt
543daf099f Added Formatter:$numberFormatterSymbols
this allows to specify custom symbols such as currency symbol.
also improved error reporting in case intl fails

fixes #7915, close #7920
2015-04-30 19:10:17 +02:00
Carsten Brandt
159c17abec added tests for non intl #8203 2015-04-27 23:40:28 +02:00
Carsten Brandt
1b1147bdad added unit test for #8203 2015-04-27 23:39:04 +02:00
Paul Klimov
a2af3868ad Test for yii\helpers\VarDumper unified 2015-04-22 18:57:47 +03:00
Klimov Paul
f2f211f610 Fallback for object containing \Closure added to yii\helpers\VarDumper::export() 2015-04-22 18:13:40 +03:00
Carsten Brandt
91777ae7cc added test for explicit primary Key on auto increment column
relates to #8071
https://github.com/yiisoft/yii2/pull/8071/files#r28787581
2015-04-21 17:20:32 +02:00
Klimov Paul
6d96d3cbee Fixed yii\db\BaseActiveRecord::updateCounters() fails for new record saved with counter attribute not set 2015-04-21 16:23:00 +03:00
Jan Was
5f099b3f8d Merge branch 'master' into 7374-inserting-ar-without-values 2015-04-21 09:49:46 +02:00
Paul Klimov
30234292ac Merge pull request #8071 from klimov-paul/5042-insert-returning
Insert into returning alternative
2015-04-21 10:33:01 +03:00
Qiang Xue
631d0ffb66 Merge pull request #8055 from Agrumas/patch-2
[REST] extraPatterns should take precedence over patterns
2015-04-20 21:44:20 -04:00
Alexander Makarov
28dce6c9b6 Fixes #7656: Fixed yii\rbac\DbManager::getRolesByUser() and yii\rbac\PhpManager::getRolesByUser() to return roles only 2015-04-21 00:29:04 +03:00
Klimov Paul
8caaba0168 Allow specification of the $key as an array at yii\helpers\ArrayHelper::getValue() 2015-04-20 15:52:32 +03:00
Klimov Paul
1641919643 Fix for tests directory recomposition 2015-04-20 11:28:35 +03:00
Klimov Paul
aa9399c6c0 Merge branch 'master' of github.com:yiisoft/yii2 into 5042-insert-returning 2015-04-20 11:23:38 +03:00
Agrumas
ef912f4e43 [REST] specifying a higher priority rule via extraPatterns 2015-04-19 15:19:33 +03:00
Klimov Paul
85ca8c3712 Added ability to specify hints for model attributes 2015-04-17 14:16:28 +03:00
Alexander Makarov
f21b8511c9 Fixed test 2015-04-17 11:52:57 +03:00
Alexander Makarov
a733ecd40c yii\widgets\LinkPager::$firstPageLabel and yii\widgets\LinkPager::$lastPageLabel now could be set to true in order to use page number as label 2015-04-17 11:51:48 +03:00
Klimov Paul
5ac889cc19 indentation fix 2015-04-16 16:55:25 +03:00
Klimov Paul
c92b1a3758 permissions for Travis scripts fixed 2015-04-16 16:38:49 +03:00
Alexander Makarov
6949992246 Simplified tests directory structure a bit 2015-04-16 12:10:01 +03:00
Kirsa Denis
cafd135022 Fixes #8064: Added ability to remove containing menu tag by setting yii\widgets\Menu::$options['tag'] to false 2015-04-15 13:21:14 +03:00
Klimov Paul
bb4bed4833 Fixed yii\data\ArrayDataProvider::getKeys() return wrong when yii\data\ArrayDataProvider::$allModels contain integer key 2015-04-14 17:07:16 +03:00
Klimov Paul
a8f4e8bee4 yiiunit\framework\db\QueryTest::testCount() fixed to be more generic 2015-04-14 16:58:46 +03:00