Skip to content

Commit 4070567

Browse files
committed
MC-5373: Product couldn't be pulled to CMS Page when it was assigned to a specific website
Use default store id (all store views) for stage renderer widget directive class
1 parent 0d8486f commit 4070567

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/code/Magento/PageBuilder/Model/Stage/Renderer/WidgetDirective.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
namespace Magento\PageBuilder\Model\Stage\Renderer;
1010

11+
use Magento\Store\Model\Store;
12+
1113
/**
1214
* Renders a widget directive for the stage
1315
*
@@ -57,9 +59,8 @@ public function render(array $params): array
5759
}
5860

5961
try {
60-
$storeId = $this->storeManager->getStore()->getId();
6162
$result['content'] = $this->directiveFilter
62-
->setStoreId($storeId)
63+
->setStoreId(Store::DEFAULT_STORE_ID)
6364
->filter($params['directive']);
6465
} catch (\Exception $e) {
6566
$result['error'] = __($e->getMessage());

0 commit comments

Comments
 (0)