mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-08 08:56:23 +08:00
change gii input maxlength value to true
this is then copied from the validator automatically close #7596
This commit is contained in:
committed by
Carsten Brandt
parent
cd0093f7bd
commit
0cea115c81
@ -250,7 +250,7 @@ class Generator extends \yii\gii\Generator
|
||||
} elseif ($column->phpType !== 'string' || $column->size === null) {
|
||||
return "\$form->field(\$model, '$attribute')->$input()";
|
||||
} else {
|
||||
return "\$form->field(\$model, '$attribute')->$input(['maxlength' => $column->size])";
|
||||
return "\$form->field(\$model, '$attribute')->$input(['maxlength' => true])";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user