Commit a126419e by Qiang Xue

Fixes #1591: StringValidator is accessing undefined property

parent 594fd2da
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment