Commit 94b19543 authored by Adrien Brault's avatar Adrien Brault

Fix pivot facet response parsing

broken since 6c8ed118
parent ba0bcaec
......@@ -247,7 +247,7 @@ class FacetSet extends ResponseParserAbstract implements ComponentParserInterfac
*/
protected function facetPivot($query, $facet, $data)
{
$key = implode(',', $facet->getFields());
$key = $facet->getKey();
if (!isset($data['facet_counts']['facet_pivot'][$key])) {
return null;
}
......
......@@ -97,7 +97,7 @@ class FacetSetTest extends \PHPUnit_Framework_TestCase
)
),
'facet_pivot' => array(
'cat,price' => array(
'keyE' => array(
array(
'field' => 'cat',
'value' => 'abc',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment