Skip to content

Commit 63055ea

Browse files
🔃 [EngCom] Public Pull Requests - 2.1-develop
Accepted Public Pull Requests: - #14505: [Backport] Check if store id is not null instead of empty (by @quisse)
2 parents a298eec + a95e975 commit 63055ea

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)