From 6be8cd49afafa0742456ad6d81af9136c96fe4e9 Mon Sep 17 00:00:00 2001 From: raviks789 Date: Mon, 5 Aug 2024 12:09:29 +0200 Subject: [PATCH] Basket::setObjects: Reset `$chosenObjects` property only if the given objects is empty --- library/Director/DirectorObject/Automation/Basket.php | 1 - 1 file changed, 1 deletion(-) diff --git a/library/Director/DirectorObject/Automation/Basket.php b/library/Director/DirectorObject/Automation/Basket.php index 403ce293a..cfa71e7ef 100644 --- a/library/Director/DirectorObject/Automation/Basket.php +++ b/library/Director/DirectorObject/Automation/Basket.php @@ -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); }