IcingaMultiEditForm: translate '' to null

This commit is contained in:
Thomas Gelf 2016-10-14 20:13:35 +00:00
parent 64147e4206
commit a8c37695a9
1 changed files with 4 additions and 0 deletions

View File

@ -99,6 +99,10 @@ class IcingaMultiEditForm extends DirectorObjectForm
$valueSum = array_pop($parts);
$property = implode('_', $parts);
if ($value === '') {
$value = null;
}
$found = false;
foreach ($this->getVariants($property) as $json => $objects) {
if ($valueSum !== sha1($json)) {