From 6fb5c5199497bf7759d4c0bb0d7f3e5112617d7e Mon Sep 17 00:00:00 2001 From: Klaus Leithoff Date: Tue, 22 Sep 2009 14:12:56 +0000 Subject: [PATCH] fix for a reported problem at the german list: with ldap store, the filter for owner did not only filter for the selected user, but additionaly the groupmembers of a group with the matching id. --- timesheet/inc/class.timesheet_ui.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/timesheet/inc/class.timesheet_ui.inc.php b/timesheet/inc/class.timesheet_ui.inc.php index 05a42cb33e..551e720812 100644 --- a/timesheet/inc/class.timesheet_ui.inc.php +++ b/timesheet/inc/class.timesheet_ui.inc.php @@ -454,7 +454,7 @@ class timesheet_ui extends timesheet_bo $GLOBALS['egw_info']['flags']['app_header'] .= ': '.$GLOBALS['egw']->common->grab_owner_name($query['col_filter']['ts_owner']); #if ($GLOBALS['egw']->accounts->get_type($query['col_filter']['ts_owner']) == 'g') $GLOBALS['egw_info']['flags']['app_header'] .= ' '. lang("and its members"); #_debug_array($GLOBALS['egw']->accounts->members($query['col_filter']['ts_owner'],true)); - $query['col_filter']['ts_owner'] = array_merge(array($query['col_filter']['ts_owner']),$GLOBALS['egw']->accounts->members($query['col_filter']['ts_owner'],true)); + if ($query['col_filter']['ts_owner']<0) $query['col_filter']['ts_owner'] = array_merge(array($query['col_filter']['ts_owner']),$GLOBALS['egw']->accounts->members($query['col_filter']['ts_owner'],true)); } else {