Skip to content

Commit

Permalink
Merge pull request #62 from EmicoEcommerce/fix/find-all-active
Browse files Browse the repository at this point in the history
Fix findAllActive method in LandingPageRepository
  • Loading branch information
ah-net authored Dec 7, 2022
2 parents 6fab997 + 00f1c1f commit 1fa05e8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Model/LandingPageRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,8 @@ public function findAllActive(): array
$storeId = $this->storeManager->getStore()->getId();

$searchCriteria = $this->searchCriteriaBuilder
->addFilter(LandingPageInterface::STORE_IDS, ['in' => $storeId])
->addFilter(LandingPageInterface::ACTIVE, 1)
->addFilter(LandingPageInterface::STORE_IDS, [$storeId, 0], 'in')
->create();

$result = $this->getList($searchCriteria);
Expand Down

0 comments on commit 1fa05e8

Please sign in to comment.