Advanced Search: Fix missing query internal params

SVN:trunk[5762]
This commit is contained in:
Eric Espié
2018-05-02 08:11:28 +00:00
parent 820c257e96
commit 21aed2d2e1
3 changed files with 33 additions and 7 deletions

View File

@@ -167,10 +167,10 @@ class CriterionToSearchForm extends CriterionConversionAbstract
{
if (!is_null($aPrevCriterion))
{
if (array_key_exists('ref', $aPrevCriterion))
if (array_key_exists('ref', $aPrevCriterion) && array_key_exists('widget', $aPrevCriterion))
{
// If previous has ref, the current has ref as the array is sorted with all without ref first
if (strcmp($aPrevCriterion['ref'], $aCurrCriterion['ref']) == 0)
if (($aPrevCriterion['ref'] == $aCurrCriterion['ref']) && ($aPrevCriterion['widget'] == $aCurrCriterion['widget']))
{
// Same attribute, try to merge
if (array_key_exists('widget', $aCurrCriterion))