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:
parent
0c2ba62c0b
commit
e59bbc1a4d
|
@ -105,10 +105,6 @@ class ImportSource extends DbObjectWithSettings implements ExportInterface
|
||||||
}
|
}
|
||||||
|
|
||||||
$object->setProperties($properties);
|
$object->setProperties($properties);
|
||||||
if ($id !== null) {
|
|
||||||
// TODO: really?
|
|
||||||
$object->reallySet('id', $id);
|
|
||||||
}
|
|
||||||
|
|
||||||
return $object;
|
return $object;
|
||||||
}
|
}
|
||||||
|
@ -129,6 +125,7 @@ class ImportSource extends DbObjectWithSettings implements ExportInterface
|
||||||
if ($this->loadedRowModifiers[$i]->hasBeenModified()) {
|
if ($this->loadedRowModifiers[$i]->hasBeenModified()) {
|
||||||
$modified = true;
|
$modified = true;
|
||||||
}
|
}
|
||||||
|
$i++;
|
||||||
}
|
}
|
||||||
if ($modified) {
|
if ($modified) {
|
||||||
// TOOD: no newRowModifiers, directly store loaded ones if diff
|
// TOOD: no newRowModifiers, directly store loaded ones if diff
|
||||||
|
|
Loading…
Reference in New Issue