Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Commit ead9c2d

Browse files
author
giaphn
committed
- Fix loi khong filter page theo store trong HTML sitemap
1 parent 9ed4dda commit ead9c2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Block/Sitemap.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ public function getCategoryUrl($categoryId)
175175
public function getPageCollection()
176176
{
177177
return $this->pageCollection->addFieldToFilter('is_active', Page::STATUS_ENABLED)
178+
->addStoreFilter($this->_storeManager->getStore())
178179
->addFieldToFilter('identifier', [
179180
'nin' => $this->getExcludedPages()
180181
]);

0 commit comments

Comments
 (0)