Skip to content

Commit 7b4dd33

Browse files
author
Tommy Quissens
committed
Check if store id is not null instead of empty
Store id 0 is empty returns true so a cms page for all store views can’t be created
1 parent 2e9f1db commit 7b4dd33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/Cms/Model/PageRepository.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function __construct(
102102
*/
103103
public function save(\Magento\Cms\Api\Data\PageInterface $page)
104104
{
105-
if (empty($page->getStoreId())) {
105+
if ($page->getStoreId() === null) {
106106
$storeId = $this->storeManager->getStore()->getId();
107107
$page->setStoreId($storeId);
108108
}

0 commit comments

Comments
 (0)