Fixed gh-402 so that the array_unique is only used on returned column (array)

This commit is contained in:
2019-04-04 09:13:45 +02:00
parent 781fb9162c
commit ba3ceb998d
4 changed files with 8 additions and 4 deletions

View File

@ -10659,7 +10659,11 @@ class Interpretation extends Fields
$function[] = $this->_t(3) . "//" . $this->setLine(__LINE__) . " get model";
$function[] = $this->_t(3) . "\$model = \$this->getModel();";
}
$function[] = $this->_t(3) . "\$results = array_unique(\$results);";
// check if usergroup as we change to an object query
if ($filter['type'] !== 'usergroup')
{
$function[] = $this->_t(3) . "\$results = array_unique(\$results);";
}
$function[] = $this->_t(3) . "\$_filter = array();";
$function[] = $this->_t(3) . "foreach (\$results as \$" . $filter['code'] . ")";
$function[] = $this->_t(3) . "{";