Skip to content

Commit 00adbcd

Browse files
ENGCOM-1223: [Backport] Check if store id is not null instead of empty #14505
- Merge Pull Request #14505 from storefront-bvba/magento2:2.1-develop - Merged commits: 1. 7b4dd33
2 parents 2e9f1db + 7b4dd33 commit 00adbcd

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)