Commit Graph

6117 Commits

Author SHA1 Message Date
Klimov Paul
101d771ecf yii\behaviors\Sluggable::validateSlug() fixed to respect updating record 2014-08-12 12:01:23 +03:00
Klimov Paul
f27254b9aa yii\behaviors\Sluggable simplified 2014-08-12 11:43:15 +03:00
Klimov Paul
d362af6ede yii\behaviors\Sluggable optimized 2014-08-12 11:36:50 +03:00
Qiang Xue
9f155de82d removed the key from the array in the fix for #4371 2014-08-11 23:30:43 -04:00
Qiang Xue
5fe6c55d6b Fixes #4586: Signed bigint and unsigned int will be converted into integers when they are loaded from DB by AR 2014-08-11 22:09:51 -04:00
Qiang Xue
00232f7aec Merge branch 'master' of git://github.com/yiisoft/yii2
Conflicts:
	framework/CHANGELOG.md
2014-08-11 21:39:19 -04:00
Carsten Brandt
c6274acf6c ensure postgres boolean values are handled correctly
also fixed an issue with default value loading of bool columns.

fixes #3489, fixes #4085, fixes #3920
related to #4672
2014-08-12 02:19:53 +02:00
Carsten Brandt
92d65ab78b fix issue with postgreSQL and batch inserting boolean values
fixes #4654
2014-08-12 01:43:49 +02:00
Carsten Brandt
70e0115d5a changelog for #4656 2014-08-12 00:45:15 +02:00
Alex-Code
9b6f84ca58 BaseHtmlPurifier config can now be a closure
`$config` can now be a closure that will have the `$configInstance` passed as the first param.

updated docs.

close #4656
2014-08-12 00:33:29 +02:00
Alexander Makarov
7728274ce6 Fixes #4122: Html::error() and Html::errorSummary() are now accepting encode option. If set to false it prevents encoding of error messages 2014-08-12 02:13:34 +04:00
Carsten Brandt
c43b7ee8b5 console help WIP 2014-08-12 00:05:19 +02:00
Carsten Brandt
a2e8083beb Created ArrayCache class
- can be used to enable caching in a request without the need for any storage
- useful for example in complex console tasks that should still be independed
2014-08-11 23:49:55 +02:00
abrahamy
b7cad9df3d Fixes #4371: Active form client validation wasn't working in case of two models having same named fields
When rendering multiple models in the same ActiveForm if any of the field names in the two models is the same then the corresponding attribute in the yiiActiveForm object in yiiActiveForm.js (ie $('form').data('yiiActiveForm').attributes) of the first rendered model is overwritten by the attribute of the last model causing the client-side validation for the overwritten field not to run at all. Example: given two models Car and Owner with attributes {make, age} and {name, age} then if the Car is rendered first its age attribute will not have any client validation.
2014-08-12 01:38:05 +04:00
mcd.php
20774165bc Fixes #4644: Added \yii\db\Schema::createColumnSchema() to be able to customize column schema used 2014-08-12 00:01:27 +04:00
Klimov Paul
b062a6601d Default event for yii\behaviors\Sluggable with unique enabled changed to 'insert'. 2014-08-11 18:04:18 +03:00
Klimov Paul
327914e452 Added automatic generating of unique slug value to yii\behaviors\Sluggable 2014-08-11 17:43:00 +03:00
Qiang Xue
3b01f48c6a Fixes #4597: yii\composer\Installer::setPermission() supports setting permission for both directories and files now (qiangxue) 2014-08-09 21:39:50 -04:00
Henry Abbott
00aab7c379 Fixed typo in comments for generatePasswordHash 2014-08-09 00:23:29 -04:00
Qiang Xue
359ae98f9c Fixes #4622: Simplified the way of creating a Faker fixture template file 2014-08-07 21:23:53 -04:00
Alexander Makarov
fb67f958a9 More cases for #4595 2014-08-07 16:37:48 +04:00
Alexander Makarov
b1e2090083 Fixes #4595: more consistend use of "false" in "don't use" case 2014-08-07 15:58:52 +04:00
Alexander Makarov
84af0ad1f7 Fixes #4592: Fixed yii help command was listing incorrect action names for methods like actionSayNO 2014-08-07 15:20:05 +04:00
disem
5c79ab202c Added key param to ActionColumn button Closure
fixes #4602, close #4624
2014-08-06 22:30:35 +02:00
Qiang Xue
0cdf2f5171 Fixed code break. 2014-08-06 10:27:37 -04:00
Qiang Xue
dee0382c1f Added yii\base\InvalidValueException.
Refactored `yii\web\User`.
2014-08-06 10:07:14 -04:00
Qiang Xue
2ef7eda249 Fixes #4611. 2014-08-06 08:08:07 -04:00
Qiang Xue
3b3fb18f4b Merge branch 'master' of git://github.com/yiisoft/yii2 2014-08-05 11:07:08 -04:00
Qiang Xue
1c3e61ec26 Fixes #4591: yii\helpers\Url::to() will no longer prefix relative URLs with the base URL 2014-08-05 11:06:54 -04:00
Tomek Romik
24d0314928 Update docs for clientValidateAttribute() 2014-08-05 16:56:00 +02:00
Qiang Xue
7a55aea247 Fixes #4600 2014-08-05 07:53:20 -04:00
Qiang Xue
f59943aaaf Merge pull request #4589 from thiagotalma/inputmask
Upgrade jquery.inputmask to v3.0.59
2014-08-04 22:06:55 -04:00
Alex-Code
594b57836d Added validation js callbacks
- `beforeValidateAll`
- `afterValidateAll`

fixes #4234, close #4559
2014-08-04 18:06:10 +02:00
Thiago Talma
d635ab857b Upgrade jquery.inputmask to v3.0.59 2014-08-04 12:31:20 -03:00
Tadas Z
f010fb57b4 Enh #4581: Added ability to disable url encoding in UrlRule. 2014-08-04 00:07:36 +03:00
verysimplenick
91e0a3c8ee fix typo in define $flavors['gfm-comment']
fix typo Markdown->GithubMarkdown in $flavors['gfm-comment']
2014-08-03 21:42:38 +04:00
Qiang Xue
3f9d590dbe minor fix [skip ci] 2014-08-03 08:30:30 -04:00
Qiang Xue
f0fefbb609 renamed function name [skip ci] 2014-08-02 22:38:55 -04:00
Qiang Xue
6dd2203a5c Fixes #4566: Added client validation support for image validator 2014-08-02 22:36:22 -04:00
Tomek Romik
87f58e4859 Abort further validation if there are no files to validate 2014-08-02 17:04:42 -04:00
Tomek Romik
8c5c4c503b Fix lines 2014-08-02 17:04:42 -04:00
Tomek Romik
ed3564c1cf Added client-side image validation 2014-08-02 17:04:42 -04:00
Qiang Xue
378b765e48 Fixes #4571: ignore non-string attribute names for AttributeBehavior. 2014-08-02 14:12:30 -04:00
Alexander Makarov
2a8ca600c5 Simplified parameter check for buildSimpleCondition() 2014-08-01 21:21:01 +04:00
Alexander Makarov
47ee0b87d4 Removed unnecessary code 2014-08-01 21:18:48 +04:00
Alexander Makarov
b656137541 Added support for arbitrary operators to Query::filterWhere, added support for arbitrary operators to Sphinx extension 2014-08-01 21:11:24 +04:00
Carsten Brandt
0ed6355ee1 test and docs to be clear about #4558 2014-08-01 15:35:23 +02:00
maxlapko
62bffafeea Update MessageController.php
Fixed order of checking config `format` property
2014-08-01 16:23:49 +04:00
Alexander Makarov
c1cf48cf5b Fixes #2315: Any operator now could be used with yii\db\Query::->where() operand format 2014-08-01 11:37:05 +04:00
Qiang Xue
f74e208103 Merge branch 'deferred-validation' of github.com:Alex-Code/yii2 into Alex-Code-deferred-validation
Conflicts:
	framework/CHANGELOG.md
2014-07-31 11:28:27 -04:00