From 47865c02740b83172555711f4b87b5e7f2db7de5 Mon Sep 17 00:00:00 2001 From: Uladzimir Tsykun Date: Mon, 7 Oct 2019 14:42:41 +0300 Subject: [PATCH] Allow to use layout builder inside the call of layoutManager getLayout --- src/Oro/Component/Layout/LayoutFactoryBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Oro/Component/Layout/LayoutFactoryBuilder.php b/src/Oro/Component/Layout/LayoutFactoryBuilder.php index 949bce2a200..09994d10748 100644 --- a/src/Oro/Component/Layout/LayoutFactoryBuilder.php +++ b/src/Oro/Component/Layout/LayoutFactoryBuilder.php @@ -167,7 +167,7 @@ public function getLayoutFactory() // initialize extension manager $registry = new LayoutRegistry(); foreach ($this->extensions as $extension) { - $registry->addExtension($extension); + $registry->addExtension(clone $extension); } if (!empty($this->types) || !empty($this->typeExtensions) || !empty($this->layoutUpdates)) { $registry->addExtension(