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

Commit 89ec0ed

Browse files
ENGCOM-1236: [Forwardport] Check if store id is not null instead of empty #14536
- Merge Pull Request magento/magento2#14536 from mastiuhin-olexandr/magento2:2.3-develop-PR-port-14504 - Merged commits: 1. 710d9e6
2 parents d76b6c1 + 710d9e6 commit 89ec0ed

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)