Commit aec6e54a authored by Bas de Nooijer's avatar Bas de Nooijer

Merge pull request #242 from adrienbrault/fix-pivot-facet

Fix pivot facet response parsing
parents 566bb047 94b19543
......@@ -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