From 7ece59dd2851e9cf73783f7706122c1045decd03 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 24 Aug 2015 23:48:20 +0000 Subject: [PATCH] Do not group users and resources. Fixes restrictions on sorting calendars --- calendar/inc/class.calendar_uiviews.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/calendar/inc/class.calendar_uiviews.inc.php b/calendar/inc/class.calendar_uiviews.inc.php index 2d980ce731..22343bda93 100644 --- a/calendar/inc/class.calendar_uiviews.inc.php +++ b/calendar/inc/class.calendar_uiviews.inc.php @@ -880,8 +880,9 @@ class calendar_uiviews extends calendar_ui { $content = ''; $headerCounter = 0; - foreach($this->_get_planner_users(false) as $uid => $label) + foreach(explode(',',$this->owner) as $uid) { + $label = $this->bo->participant_name($uid); $content .= '
'; $search_params['users'] = $uid; $content .= ''.$label."\n";