Add skip-empty option to get_edit_field() (#7444)

pull/7458/head
Aleksander Machniak 4 years ago
parent ec2e713ecb
commit b22f1c9a1b

@ -306,7 +306,9 @@ abstract class rcube_output
} }
else if ($type == 'select') { else if ($type == 'select') {
$input = new html_select($attrib); $input = new html_select($attrib);
$input->add('---', ''); if (empty($attrib['skip-empty'])) {
$input->add('---', '');
}
$input->add(array_values($attrib['options']), array_keys($attrib['options'])); $input->add(array_values($attrib['options']), array_keys($attrib['options']));
} }
else if ($type == 'password' || $attrib['type'] == 'password') { else if ($type == 'password' || $attrib['type'] == 'password') {

Loading…
Cancel
Save