IcingaObjectGroups: keep id when cloning groups
Before this fix we lost autoincrement ids on clone, resulting in ill-constructed queries on deletion fixes #11508
This commit is contained in:
parent
5952de5841
commit
1c79807500
|
@ -304,7 +304,10 @@ class IcingaObjectGroups implements Iterator, Countable, IcingaConfigRenderer
|
|||
$this->storedGroups = array();
|
||||
foreach ($this->groups as $k => $v) {
|
||||
$this->storedGroups[$k] = clone($v);
|
||||
$this->storedGroups[$k]->id = $v->id;
|
||||
}
|
||||
|
||||
$this->modified = false;
|
||||
}
|
||||
|
||||
protected function getGroupClass()
|
||||
|
|
Loading…
Reference in New Issue