Skip to content

Commit a95e975

Browse files
author
Stanislav Idolov
authored
ENGCOM-1223: [Backport] Check if store id is not null instead of empty #14505
2 parents a298eec + 00adbcd commit a95e975

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)