partial #2183 - fix the problem that just one admin user was being returned

This commit is contained in:
pererinha 2013-11-27 19:33:23 -02:00
parent eaab5fac34
commit b22c5f51f7

View File

@ -213,7 +213,7 @@ class Crunchbutton_Notification_Log extends Cana_Table {
$group_name = Config::getVal( Crunchbutton_Notification_Log::MAX_CALL_GROUP_KEY );
$group = Crunchbutton_Group::byName( $group_name );
if( $group->id_group ){
return $group->users();
return Crunchbutton_Admin_Group::q( "SELECT a.* FROM admin a INNER JOIN admin_group ag ON ag.id_admin = a.id_admin AND ag.id_group = {$group->id_group}" );
}
return false;
}