mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-28 08:14:03 +02:00
ContactgroupQuery: Do not use Zend_Select::group() but self::group()
Avoids duplicate GROUP BY expressions.
This commit is contained in:
parent
53e6d4cadc
commit
09d9d00844
@ -139,9 +139,8 @@ class ContactQuery extends IdoQuery
|
|||||||
array('ho' => $this->prefix . 'objects'),
|
array('ho' => $this->prefix . 'objects'),
|
||||||
'ho.object_id = h.host_object_id AND ho.is_active = 1',
|
'ho.object_id = h.host_object_id AND ho.is_active = 1',
|
||||||
array()
|
array()
|
||||||
)->group(
|
|
||||||
array('c.contact_id')
|
|
||||||
);
|
);
|
||||||
|
$this->group(array('c.contact_id'));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -182,8 +181,7 @@ class ContactQuery extends IdoQuery
|
|||||||
array('so' => $this->prefix . 'objects'),
|
array('so' => $this->prefix . 'objects'),
|
||||||
'so.object_id = s.service_object_id AND so.is_active = 1 AND so.objecttype_id = 2',
|
'so.object_id = s.service_object_id AND so.is_active = 1 AND so.objecttype_id = 2',
|
||||||
array()
|
array()
|
||||||
)->group(
|
|
||||||
array('c.contact_id')
|
|
||||||
);
|
);
|
||||||
|
$this->group(array('c.contact_id'));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user