diff --git a/calendar/inc/class.uicalendar.inc.php b/calendar/inc/class.uicalendar.inc.php index 5cf4b6548e..33342cfbaa 100755 --- a/calendar/inc/class.uicalendar.inc.php +++ b/calendar/inc/class.uicalendar.inc.php @@ -2346,7 +2346,18 @@ $this->index(); } - $participants = get_var("participants", array("GET", "POST")); + // Fetch participants + if( get_var("matrix", array("GET", "POST")) == 1 ) + { + // fetch participants from session + $participants = explode(";", $GLOBALS['phpgw']->session->appsession("participants_matrix")); + } else { + // fetch participatns from get and post var + $participants = get_var("participants", array("GET", "POST")); + // Defined - into session - who participates + $GLOBALS['phpgw']->session->appsession("participants_matrix", "calendar", implode(";", $participants)); + } + $date["year"] = get_var("year", array("GET", "POST")); $date["month"] = get_var("month", array("GET", "POST")); $date["day"] = get_var("day", array("GET", "POST")); @@ -2382,10 +2393,7 @@ } unset($acct); } - $participants = array_keys($parts); // get id's as values and a numeric index - - // Defined - into session - who participates - $GLOBALS['phpgw']->session->appsession("participants_matrix", "calendar", implode(";", $participants)); + # $participants = array_keys($parts); // get id's as values and a numeric index unset($GLOBALS['phpgw_info']['flags']['noheader']); unset($GLOBALS['phpgw_info']['flags']['nonavbar']); @@ -2429,11 +2437,7 @@ echo ' '.$this->html->input_hidden('month',$this->bo->month); echo ' '.$this->html->input_hidden('day',$this->bo->day); echo ' '.$this->html->input_hidden('matrixtype',$_REQUEST['matrixtype']); - foreach($participants as $part) - { - $part = substr($part,0,2) == 'g_' ? 'g_'.(int) substr($part,2) : (int) $part; - echo ' '.$this->html->input_hidden('participants[]',$part); - } + echo ' '.$this->html->input_hidden('matrix', 1); echo ' '."\n"; echo '