ImportSource: increment modifier counter on import

This fix has no impact on the restored data, but avoids useless
re-creation of the very same property modifiers on restore (in case
there is more than one)
This commit is contained in:
Thomas Gelf 2020-01-09 14:08:52 +01:00
parent 0c2ba62c0b
commit e59bbc1a4d
1 changed files with 1 additions and 4 deletions

View File

@ -105,10 +105,6 @@ class ImportSource extends DbObjectWithSettings implements ExportInterface
}
$object->setProperties($properties);
if ($id !== null) {
// TODO: really?
$object->reallySet('id', $id);
}
return $object;
}
@ -129,6 +125,7 @@ class ImportSource extends DbObjectWithSettings implements ExportInterface
if ($this->loadedRowModifiers[$i]->hasBeenModified()) {
$modified = true;
}
$i++;
}
if ($modified) {
// TOOD: no newRowModifiers, directly store loaded ones if diff