Skip to content
This repository has been archived by the owner on Oct 19, 2022. It is now read-only.

Commit

Permalink
lowercase both filters for more robust mathcing
Browse files Browse the repository at this point in the history
  • Loading branch information
bramstroker committed Jun 15, 2021
1 parent 82a31ae commit 717d561
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/code/local/Emico/AttributeLanding/Model/Observer.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function setNoIndexNoFollow(Varien_Event_Observer $event)

$searchAttributes = array_map(
static function (array $item) {
return $item['attribute'] . '||' . $item['value'] ;
return strtolower($item['attribute'] . '||' . $item['value']);
},
$page->getSearchAttributes()
);
Expand Down Expand Up @@ -171,7 +171,7 @@ protected function getSelectedAttributesWithoutCategory(Emico_Tweakwise_Model_Ca
}

foreach ($facet->getActiveAttributes() as $attribute) {
$selectedFacetsWithoutCategories[] = $facet->getFacetSettings()->getUrlKey() . '||' . $attribute->getTitle();
$selectedFacetsWithoutCategories[] = strtolower($facet->getFacetSettings()->getUrlKey() . '||' . $attribute->getTitle());
}

}
Expand Down

0 comments on commit 717d561

Please sign in to comment.