mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
SyncRule: drop obsolete originalId
This commit is contained in:
parent
3893455388
commit
5029a30a62
@ -64,8 +64,6 @@ class SyncRule extends DbObject implements ExportInterface
|
|||||||
|
|
||||||
private $newSyncProperties;
|
private $newSyncProperties;
|
||||||
|
|
||||||
private $originalId;
|
|
||||||
|
|
||||||
public function listInvolvedSourceIds()
|
public function listInvolvedSourceIds()
|
||||||
{
|
{
|
||||||
if (! $this->hasBeenLoadedFromDb()) {
|
if (! $this->hasBeenLoadedFromDb()) {
|
||||||
@ -333,12 +331,6 @@ class SyncRule extends DbObject implements ExportInterface
|
|||||||
$connection = $this->getConnection();
|
$connection = $this->getConnection();
|
||||||
$db = $connection->getDbAdapter();
|
$db = $connection->getDbAdapter();
|
||||||
$myId = $this->get('id');
|
$myId = $this->get('id');
|
||||||
if ($this->originalId === null) {
|
|
||||||
$originalId = $myId;
|
|
||||||
} else {
|
|
||||||
$originalId = $this->originalId;
|
|
||||||
$this->originalId = null;
|
|
||||||
}
|
|
||||||
if ($this->hasBeenLoadedFromDb()) {
|
if ($this->hasBeenLoadedFromDb()) {
|
||||||
$db->delete(
|
$db->delete(
|
||||||
'sync_property',
|
'sync_property',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user