From 0fbdc3e5950771b783564a051343e5b29bc7147b Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Mon, 8 Dec 2014 17:23:57 +0000 Subject: [PATCH] Explicitly apply state filters to UI --- calendar/inc/class.calendar_favorite_portlet.inc.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/calendar/inc/class.calendar_favorite_portlet.inc.php b/calendar/inc/class.calendar_favorite_portlet.inc.php index fba267d65b..c3d40645e5 100644 --- a/calendar/inc/class.calendar_favorite_portlet.inc.php +++ b/calendar/inc/class.calendar_favorite_portlet.inc.php @@ -64,6 +64,12 @@ class calendar_favorite_portlet extends home_favorite_portlet else { $ui = new calendar_uiviews(); + if($this->favorite['state']['start']) $ui->search_params['start'] = $this->favorite['state']['start']; + if($this->favorite['state']['cat_id']) $ui->search_params['cat_id'] = $this->favorite['state']['cat_id']; + if($this->favorite['state']['owner']) $ui->search_params['users'] = explode(',',$this->favorite['state']['owner']); + if($this->favorite['state']['filter']) $ui->search_params['filter'] = $this->favorite['state']['filter']; + if($this->favorite['state']['sortby']) $ui->search_params['sortby'] = $this->favorite['state']['sortby']; + $etemplate->read('home.legacy'); $etemplate->set_dom_id($id);