Skip to content

Commit

Permalink
Basket::setObjects: Reset $chosenObjects property only if the given…
Browse files Browse the repository at this point in the history
… objects is empty (#2902)
  • Loading branch information
lippserd authored Nov 7, 2024
2 parents 058bc4a + 6be8cd4 commit 39c823c
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion library/Director/DirectorObject/Automation/Basket.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ public function setObjects($objects)
if (empty($objects)) {
$this->chosenObjects = [];
} else {
$this->chosenObjects = [];
foreach ((array) $objects as $type => $object) {
$this->addObjects($type, $object);
}
Expand Down

0 comments on commit 39c823c

Please sign in to comment.