mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-08-19 00:38:27 +02:00
Prevent inserting blank entries for extensible data list.
This commit is contained in:
parent
2c56d5a731
commit
67eb4c1e90
@ -59,7 +59,9 @@ class DataTypeDatalist extends DataTypeHook
|
||||
|
||||
$db = $form->getDb();
|
||||
foreach ($value as $entry) {
|
||||
$this->createEntryIfNotExists($db, $listId, $entry);
|
||||
if ($entry !== '') {
|
||||
$this->createEntryIfNotExists($db, $listId, $entry);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user