Skip to content

Commit

Permalink
Fix TaxonUrlProvider (#179)
Browse files Browse the repository at this point in the history
Sylius has toggleable taxons since version 1.8

Co-authored-by: Stefan Doorn <stefan@efectos.nl>
  • Loading branch information
stefandoorn authored Dec 12, 2021
2 parents 9cc094a + cc7b3b7 commit e7e4cfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Provider/TaxonUrlProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function generate(ChannelInterface $channel): iterable
private function getTaxons(): iterable
{
/** @var TaxonInterface[] $taxons */
$taxons = $this->taxonRepository->findAll();
$taxons = $this->taxonRepository->findBy(['enabled' => true]);

return $taxons;
}
Expand Down

0 comments on commit e7e4cfe

Please sign in to comment.