MDL-45873 mode_data: Allow "0" entries in menu field
This commit is contained in:
@@ -50,7 +50,7 @@ class data_field_menu extends data_field_base {
|
||||
$rawoptions = explode("\n",$this->field->param1);
|
||||
foreach ($rawoptions as $option) {
|
||||
$option = trim($option);
|
||||
if ($option) {
|
||||
if (strlen($option) > 0) {
|
||||
$options[$option] = $option;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user