ImportRowModifier: allow custom priority for...

...new objects (important when importing them)
This commit is contained in:
Thomas Gelf 2018-06-11 17:37:54 +02:00
parent 67763dc5a9
commit f9ca11eb50

View File

@ -66,7 +66,7 @@ class ImportRowModifier extends DbObjectWithSettings
protected function beforeStore()
{
if (! $this->hasBeenLoadedFromDb()) {
if (! $this->hasBeenLoadedFromDb() && $this->get('priority') === null) {
$this->setNextPriority('source_id');
}
}