mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-26 14:26:54 +08:00
minor fix [skip ci]
This commit is contained in:
@ -1180,7 +1180,7 @@ class BaseHtml
|
||||
{
|
||||
if (isset($options['maxlength']) && $options['maxlength'] === true) {
|
||||
unset($options['maxlength']);
|
||||
$attrName = Html::getAttributeName($attribute);
|
||||
$attrName = static::getAttributeName($attribute);
|
||||
foreach ($model->getActiveValidators($attrName) as $validator) {
|
||||
if ($validator instanceof StringValidator && $validator->max !== null) {
|
||||
$options['maxlength'] = $validator->max;
|
||||
|
Reference in New Issue
Block a user