mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-30 06:29:02 +08:00
Fixes #1591: StringValidator is accessing undefined property
This commit is contained in:
@@ -9,6 +9,7 @@ Yii Framework 2 Change Log
|
||||
- Bug #1500: Log messages exported to files are not separated by newlines (omnilight, qiangxue)
|
||||
- Bug #1509: The SQL for creating Postgres RBAC tables is incorrect (qiangxue)
|
||||
- Bug #1545: It was not possible to execute db Query twice, params where missing (cebe)
|
||||
- Bug #1591: StringValidator is accessing undefined property (qiangxue)
|
||||
- Bug: Fixed `Call to a member function registerAssetFiles() on a non-object` in case of wrong `sourcePath` for an asset bundle (samdark)
|
||||
- Bug: Fixed incorrect event name for `yii\jui\Spinner` (samdark)
|
||||
- Bug: Json::encode() did not handle objects that implement JsonSerializable interface correctly (cebe)
|
||||
|
||||
@@ -174,7 +174,7 @@ class StringValidator extends Validator
|
||||
$options['is'] = $this->length;
|
||||
$options['notEqual'] = Html::encode(strtr($this->notEqual, [
|
||||
'{attribute}' => $label,
|
||||
'{length}' => $this->is,
|
||||
'{length}' => $this->length,
|
||||
]));
|
||||
}
|
||||
if ($this->skipOnEmpty) {
|
||||
|
||||
Reference in New Issue
Block a user