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

Commit 06c6ff3

Browse files
committed
Fix reverse lookup of attribute value by slug
1 parent 2e2ddbe commit 06c6ff3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/local/Emico/AttributeLanding/Model/Tweakwise/UrlStrategy/AttributeLandingStrategy.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function decorateTweakwiseRequest(Zend_Controller_Request_Http $httpReque
109109
}
110110
foreach ($page->getSearchAttributesKvp() as $key => $values) {
111111
foreach ($values as $value) {
112-
$tweakwiseRequest->addFacetKey($key, $this->getTweakwiseAttributeValue($key, $value));
112+
$tweakwiseRequest->addFacetKey($key, $this->getTweakwiseAttributeValue($value));
113113
}
114114
}
115115
return $tweakwiseRequest;
@@ -121,10 +121,10 @@ public function decorateTweakwiseRequest(Zend_Controller_Request_Http $httpReque
121121
* @param string $value
122122
* @return int|null|string
123123
*/
124-
protected function getTweakwiseAttributeValue(string $key, string $value)
124+
protected function getTweakwiseAttributeValue(string $value)
125125
{
126126
try {
127-
return $this->getSlugAttributeMapper()->getAttributeValueBySlug($key, $value);
127+
return $this->getSlugAttributeMapper()->getAttributeValueBySlug($value);
128128
} catch (Emico_TweakwiseExport_Model_Exception_SlugMappingException $exception) {
129129
return $value;
130130
}

0 commit comments

Comments
 (0)