Addressbook - fix organisation view still showed all contacts

This commit is contained in:
nathangray 2017-05-31 10:18:34 -06:00
parent 5fb5a905e8
commit 77a285bbea

View File

@ -1670,7 +1670,10 @@ window.egw_LAB.wait(function() {
{
list($name,$value) = explode(':',$part,2);
// do NOT set invalid column, as this gives an SQL error ("AND AND" in sql)
if (static::$duplicate_fields[$name] && in_array($name, $fields) && $value)
if (static::$duplicate_fields[$name] && $value && (
strpos($query['grouped_view'], 'duplicate:') === 0 && in_array($name, $fields) ||
strpos($query['grouped_view'], 'duplicate:') !== 0
))
{
$query['col_filter'][$name] = $value;
}