Commit f645368e by Alexander Kochetov

BaseHtml::listBox() allow to remove size attribute

parent 7a7030e0
......@@ -718,6 +718,9 @@ class BaseHtml
*/
public static function listBox($name, $selection = null, $items = [], $options = [])
{
if (!array_key_exists($options, 'size')) {
$options['size'] = 4;
}
if (!empty($options['multiple']) && substr($name, -2) !== '[]') {
$name .= '[]';
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment