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
  • Loading branch information
raviks789 committed Oct 22, 2024
1 parent a6da978 commit 02e8ab5
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 02e8ab5

Please sign in to comment.