Fix sync rule restore from snapshot on name change
On name change new Sync rule would be created, hence we do not have to preserve the Sync rule Ids in SyncRule::import() method.
This commit is contained in:
parent
f64822c409
commit
71f3654c0b
|
@ -315,10 +315,6 @@ class SyncRule extends DbObject implements ExportInterface
|
|||
$object->newSyncProperties = $properties['properties'];
|
||||
unset($properties['properties']);
|
||||
$object->setProperties($properties);
|
||||
if ($id !== null && (int) $id !== (int) $object->get('id')) {
|
||||
$object->originalId = $object->get('id');
|
||||
$object->reallySet('id', $id);
|
||||
}
|
||||
|
||||
return $object;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue