1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-05 14:17:49 +02:00

Fixed: missing maxlength attribute added to form handler.

This commit is contained in:
Cameron
2014-09-05 13:13:50 -07:00
parent 673fa912ff
commit 1096302c35

View File

@@ -1127,6 +1127,8 @@ class e_form
}
$options = $this->format_options('textarea', $name, $options);
print_a($options);
//never allow id in format name-value for text fields
return "<textarea name='{$name}' rows='{$rows}' cols='{$cols}'".$this->get_attributes($options, $name).">{$value}</textarea>".(false !== $counter ? $this->hidden('__'.$name.'autoheight_opt', $counter) : '');
}
@@ -2052,6 +2054,10 @@ class e_form
if($optval) $ret .= " selected='selected'";
break;
case 'maxlength':
if($optval) $ret .= " maxlength='{$optval}'";
break;
case 'checked':
if($optval) $ret .= " checked='checked'";
break;
@@ -2191,7 +2197,8 @@ class e_form
'placeholder' => '',
'pattern' => '',
'other' => '',
'autocomplete' => ''
'autocomplete' => '',
'maxlength' => ''
// 'multiple' => false, - see case 'select'
);