mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
Basket::setObjects: Reset $chosenObjects
property only if the given objects is empty
This commit is contained in:
parent
058bc4a776
commit
6be8cd49af
@ -82,7 +82,6 @@ class Basket extends DbObject implements ExportInterface
|
|||||||
if (empty($objects)) {
|
if (empty($objects)) {
|
||||||
$this->chosenObjects = [];
|
$this->chosenObjects = [];
|
||||||
} else {
|
} else {
|
||||||
$this->chosenObjects = [];
|
|
||||||
foreach ((array) $objects as $type => $object) {
|
foreach ((array) $objects as $type => $object) {
|
||||||
$this->addObjects($type, $object);
|
$this->addObjects($type, $object);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user