@@ 242-245 (lines=4) @@ | ||
239 | ||
240 | // NOTE: using this method range and checkbox facets don't get counts |
|
241 | if ($fasterMethod && $facet['Type'] != ShopSearch::FACET_TYPE_LINK) { |
|
242 | if ($facet['Type'] == ShopSearch::FACET_TYPE_RANGE) { |
|
243 | if (isset($facet['RangeMin'])) { |
|
244 | $facet['MinValue'] = $facet['RangeMin']; |
|
245 | } |
|
246 | if (isset($facet['RangeMax'])) { |
|
247 | $facet['MaxValue'] = $facet['RangeMax']; |
|
248 | } |
|
@@ 256-259 (lines=4) @@ | ||
253 | ||
254 | foreach ($matches as $rec) { |
|
255 | // If it's a range facet, set up the min/max |
|
256 | if ($facet['Type'] == ShopSearch::FACET_TYPE_RANGE) { |
|
257 | if (isset($facet['RangeMin'])) { |
|
258 | $facet['MinValue'] = $facet['RangeMin']; |
|
259 | } |
|
260 | if (isset($facet['RangeMax'])) { |
|
261 | $facet['MaxValue'] = $facet['RangeMax']; |
|
262 | } |