mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 06:44:33 +02:00
SimpleQuery: Deep clone the filter when cloning the query
This commit is contained in:
parent
31064a0dc5
commit
9595809dfa
@ -381,6 +381,7 @@ class DbQuery extends SimpleQuery
|
|||||||
|
|
||||||
public function __clone()
|
public function __clone()
|
||||||
{
|
{
|
||||||
|
parent::__clone();
|
||||||
$this->select = clone $this->select;
|
$this->select = clone $this->select;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -550,4 +550,12 @@ class SimpleQuery implements QueryInterface, Queryable, Iterator
|
|||||||
{
|
{
|
||||||
return $this->columns;
|
return $this->columns;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Deep clone self::$filter
|
||||||
|
*/
|
||||||
|
public function __clone()
|
||||||
|
{
|
||||||
|
$this->filter = clone $this->filter;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user