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

Commit 717d561

Browse files
committed
lowercase both filters for more robust mathcing
1 parent 82a31ae commit 717d561

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/local/Emico/AttributeLanding/Model/Observer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public function setNoIndexNoFollow(Varien_Event_Observer $event)
141141

142142
$searchAttributes = array_map(
143143
static function (array $item) {
144-
return $item['attribute'] . '||' . $item['value'] ;
144+
return strtolower($item['attribute'] . '||' . $item['value']);
145145
},
146146
$page->getSearchAttributes()
147147
);
@@ -171,7 +171,7 @@ protected function getSelectedAttributesWithoutCategory(Emico_Tweakwise_Model_Ca
171171
}
172172

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

177177
}

0 commit comments

Comments
 (0)