Skip to content

Commit 3ad1158

Browse files
committed
Merge remote-tracking branch 'tango/MC-18702' into PR_2019_08_20
2 parents 6f03dd3 + ee50408 commit 3ad1158

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/code/Magento/Cms/Model/ResourceModel/Page/Collection.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ public function addStoreFilter($store, $withAdmin = true)
7474
{
7575
if (!$this->getFlag('store_filter_added')) {
7676
$this->performAddStoreFilter($store, $withAdmin);
77+
$this->setFlag('store_filter_added', true);
7778
}
79+
7880
return $this;
7981
}
8082

app/code/Magento/Cms/ViewModel/Page/Grid/UrlBuilder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ private function prepareRequestQuery(string $store, string $href) : array
103103
StoreManagerInterface::PARAM_NAME => $store,
104104
ActionInterface::PARAM_NAME_URL_ENCODED => $this->urlEncoder->encode($href)
105105
];
106-
if ($storeView->getCode() !== $store) {
106+
if (null !== $storeView && $storeView->getCode() !== $store) {
107107
$query['___from_store'] = $storeView->getCode();
108108
}
109109

0 commit comments

Comments
 (0)