Browse Source

Fix #18204: Fix 2.0.36 regression in inline validator and JS validation

tags/2.0.37
Alexander Makarov 4 years ago committed by GitHub
parent
commit
1ade4993f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      framework/CHANGELOG.md
  2. 2
      framework/validators/InlineValidator.php

1
framework/CHANGELOG.md

@ -8,6 +8,7 @@ Yii Framework 2 Change Log
- Bug #18170: Fix 2.0.36 regression in passing extra console command arguments to the action (darkdef)
- Bug #18182: `yii\db\Expression` was not supported as condition in `ActiveRecord::findOne()` and `ActiveRecord::findAll()` (rhertogh)
- Bug #18189: Fix "Invalid parameter number" in `yii\rbac\DbManager::removeItem()` (samdark)
- Bug #18204: Fix 2.0.36 regression in inline validator and JS validation (samdark)
- Enh #18205: Add `.phpstorm.meta.php` file for better auto-completion in PhpStorm (vjik)

2
framework/validators/InlineValidator.php

@ -94,7 +94,7 @@ class InlineValidator extends Validator
if (is_string($method)) {
$method = [$model, $method];
} elseif ($method instanceof \Closure) {
$method = $this->method->bindTo($model);
$method = $method->bindTo($model);
}
$current = $this->current;
if ($current === null) {

Loading…
Cancel
Save