mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 08:44:11 +02:00
IcingaMultiEditForm: translate '' to null
This commit is contained in:
parent
64147e4206
commit
a8c37695a9
@ -99,6 +99,10 @@ class IcingaMultiEditForm extends DirectorObjectForm
|
|||||||
$valueSum = array_pop($parts);
|
$valueSum = array_pop($parts);
|
||||||
$property = implode('_', $parts);
|
$property = implode('_', $parts);
|
||||||
|
|
||||||
|
if ($value === '') {
|
||||||
|
$value = null;
|
||||||
|
}
|
||||||
|
|
||||||
$found = false;
|
$found = false;
|
||||||
foreach ($this->getVariants($property) as $json => $objects) {
|
foreach ($this->getVariants($property) as $json => $objects) {
|
||||||
if ($valueSum !== sha1($json)) {
|
if ($valueSum !== sha1($json)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user