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:
raviks789 2022-03-17 14:34:51 +01:00 committed by Thomas Gelf
parent f64822c409
commit 71f3654c0b
1 changed files with 0 additions and 4 deletions

View File

@ -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;
}