From c86940783658d72058a691c8207b4da45f0c8b4c Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Fri, 28 Nov 2014 17:36:31 +0000 Subject: [PATCH] More Home progress: - Add support for projectmanager favorites --- home/inc/class.home_favorite_portlet.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/home/inc/class.home_favorite_portlet.inc.php b/home/inc/class.home_favorite_portlet.inc.php index 5a5e39d8e5..0c12f355f3 100644 --- a/home/inc/class.home_favorite_portlet.inc.php +++ b/home/inc/class.home_favorite_portlet.inc.php @@ -111,7 +111,14 @@ class home_favorite_portlet extends home_portlet // Always load app's javascript, so most actions have a chance of working egw_framework::validate_file('','app',$this->context['appname']); + + // Set this so app's JS gets initialized + $old_app = $GLOBALS['egw_info']['flags']['currentapp']; + $GLOBALS['egw_info']['flags']['currentapp'] = $this->context['appname']; + $etemplate->exec(get_called_class() .'::process',$content,$sel_options); + + $GLOBALS['egw_info']['flags']['currentapp'] = $old_app; } public static function process($content = array())