Prevent inserting blank entries for extensible data list.

This commit is contained in:
raviks789 2022-04-19 15:33:09 +02:00 committed by Thomas Gelf
parent 2c56d5a731
commit 67eb4c1e90

View File

@ -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);
}
}
});
}