From d3625e807d94781c2ae713d91a2ee9efa88fb9a2 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 7 Mar 2023 11:51:25 +0100 Subject: [PATCH] Basket: drop protectedFormerChosenObjects --- library/Director/DirectorObject/Automation/Basket.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/library/Director/DirectorObject/Automation/Basket.php b/library/Director/DirectorObject/Automation/Basket.php index e0b62913..75df18ef 100644 --- a/library/Director/DirectorObject/Automation/Basket.php +++ b/library/Director/DirectorObject/Automation/Basket.php @@ -25,8 +25,6 @@ class Basket extends DbObject implements ExportInterface protected $chosenObjects = []; - protected $protectedFormerChosenObjects; - protected $defaultProperties = [ 'uuid' => null, 'basket_name' => null, @@ -122,7 +120,6 @@ class Basket extends DbObject implements ExportInterface if (empty($objects)) { $this->chosenObjects = []; } else { - $this->protectedFormerChosenObjects = $this->chosenObjects; $this->chosenObjects = []; foreach ((array) $objects as $type => $object) { $this->addObjects($type, $object); @@ -150,14 +147,6 @@ class Basket extends DbObject implements ExportInterface if (! isset($this->chosenObjects[$type]) || ! is_array($this->chosenObjects[$type])) { $this->chosenObjects[$type] = []; } - if (isset($this->protectedFormerChosenObjects[$type])) { - if (is_array($this->protectedFormerChosenObjects[$type])) { - $this->chosenObjects[$type] = $this->protectedFormerChosenObjects[$type]; - } else { - $this->chosenObjects[$type] = []; - } - } - if ($objects === self::SELECTION_CUSTOM) { $objects = []; }