mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-28 16:24:05 +02:00
ImportRowModifier: allow custom priority for...
...new objects (important when importing them)
This commit is contained in:
parent
67763dc5a9
commit
f9ca11eb50
@ -66,7 +66,7 @@ class ImportRowModifier extends DbObjectWithSettings
|
|||||||
|
|
||||||
protected function beforeStore()
|
protected function beforeStore()
|
||||||
{
|
{
|
||||||
if (! $this->hasBeenLoadedFromDb()) {
|
if (! $this->hasBeenLoadedFromDb() && $this->get('priority') === null) {
|
||||||
$this->setNextPriority('source_id');
|
$this->setNextPriority('source_id');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user