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

Commit 6e5dfb8

Browse files
ENGCOM-1220: [Forwardport] Check if store id is not null instead of empty #14502
- Merge Pull Request magento/magento2#14502 from storefront-bvba/magento2:2.3-develop - Merged commits: 1. 9d087f8
2 parents 5a7c3bd + 9d087f8 commit 6e5dfb8

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)