mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-02 04:37:42 +08:00
Fix client-side trim validator.
Subsequent validators now use the trimmed value instead of the original value. fixes #7707
This commit is contained in:
@ -89,6 +89,6 @@ class FilterValidator extends Validator
|
||||
|
||||
ValidationAsset::register($view);
|
||||
|
||||
return 'yii.validation.trim($form, attribute, ' . json_encode($options, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) . ');';
|
||||
return 'value = yii.validation.trim($form, attribute, ' . json_encode($options, JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) . ');';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user