mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
ImportSource: allow an imported object with no...
...modifiers to remove existing ones
This commit is contained in:
parent
e59bbc1a4d
commit
668012ac64
@ -104,6 +104,10 @@ class ImportSource extends DbObjectWithSettings implements ExportInterface
|
||||
$object = static::create([], $db);
|
||||
}
|
||||
|
||||
if (! isset($properties['modifiers'])) {
|
||||
$properties['modifiers'] = [];
|
||||
}
|
||||
|
||||
$object->setProperties($properties);
|
||||
|
||||
return $object;
|
||||
@ -128,7 +132,6 @@ class ImportSource extends DbObjectWithSettings implements ExportInterface
|
||||
$i++;
|
||||
}
|
||||
if ($modified) {
|
||||
// TOOD: no newRowModifiers, directly store loaded ones if diff
|
||||
$this->newRowModifiers = $modifiers;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user