From b22c5f51f765576e772b4b1567d77b9980c101aa Mon Sep 17 00:00:00 2001 From: pererinha Date: Wed, 27 Nov 2013 19:33:23 -0200 Subject: [PATCH] partial #2183 - fix the problem that just one admin user was being returned --- include/library/Crunchbutton/Notification/Log.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/library/Crunchbutton/Notification/Log.php b/include/library/Crunchbutton/Notification/Log.php index 3c530c205..e2649fa27 100644 --- a/include/library/Crunchbutton/Notification/Log.php +++ b/include/library/Crunchbutton/Notification/Log.php @@ -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; }