Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 9d087f8

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 5a7c3bd commit 9d087f8

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
@@ -111,7 +111,7 @@ public function __construct(
111111
*/
112112
public function save(\Magento\Cms\Api\Data\PageInterface $page)
113113
{
114-
if (empty($page->getStoreId())) {
114+
if ($page->getStoreId() === null) {
115115
$storeId = $this->storeManager->getStore()->getId();
116116
$page->setStoreId($storeId);
117117
}

0 commit comments

Comments
 (0)