list/contactgroups: show empty usergroups, too

refs #11744
This commit is contained in:
Alexander A. Klimov 2016-05-31 17:50:49 +02:00
parent 1be8e14772
commit 3fed5e920f
1 changed files with 1 additions and 1 deletions

View File

@ -87,7 +87,7 @@ class ContactgroupQuery extends IdoQuery
array('cgm' => $this->prefix . 'contactgroup_members'), array('cgm' => $this->prefix . 'contactgroup_members'),
'cgm.contactgroup_id = cg.contactgroup_id', 'cgm.contactgroup_id = cg.contactgroup_id',
array() array()
)->join( )->joinLeft(
array('co' => $this->prefix . 'objects'), array('co' => $this->prefix . 'objects'),
'co.object_id = cgm.contact_object_id AND co.is_active = 1 AND co.objecttype_id = 10', 'co.object_id = cgm.contact_object_id AND co.is_active = 1 AND co.objecttype_id = 10',
array() array()