diff --git a/src/QUI/Bricks/Manager.php b/src/QUI/Bricks/Manager.php index d2cc040082c204c6eddcde11e9ea1e2d0a00818d..7dcb2627f24023fbe902df913f57a5ef2853bc6c 100644 --- a/src/QUI/Bricks/Manager.php +++ b/src/QUI/Bricks/Manager.php @@ -426,6 +426,7 @@ public function getBricksByArea($brickArea, Site $Site) try { $Brick = $this->getBrickById($brickId); + $Clone = clone $Brick; if (isset($brickData['customfields']) && !empty($brickData['customfields']) @@ -433,11 +434,11 @@ public function getBricksByArea($brickArea, Site $Site) $custom = json_decode($brickData['customfields'], true); if ($custom) { - $Brick->setSettings($custom); + $Clone->setSettings($custom); } } - $result[] = $Brick->check(); + $result[] = $Clone->check(); } catch (QUI\Exception $Exception) { QUI\System\Log::addWarning(