From 7925e33c6f331d91f4236ce99d05fd9f3552729f Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 4 Oct 2012 22:00:57 +0000 Subject: [PATCH] Fix bug where clicking on a hooked app twice sends you to the hooked app --- etemplate/inc/class.etemplate_old.inc.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/etemplate/inc/class.etemplate_old.inc.php b/etemplate/inc/class.etemplate_old.inc.php index 2050579615..4e142f17a4 100644 --- a/etemplate/inc/class.etemplate_old.inc.php +++ b/etemplate/inc/class.etemplate_old.inc.php @@ -524,6 +524,13 @@ class etemplate_old extends boetemplate { self::$hook_content = self::$request->hooked; $GLOBALS['egw_info']['flags']['currentapp'] = self::$hook_app = self::$request->hook_app; + + // Prevent previous content form names from being used again in exec() + preg_match_all('/
hooked, $used); + if(is_array($used[1]) && count($used[1])) + { + self::$name_forms += $used[1]; + } } if(self::$request->include_xajax) $GLOBALS['egw_info']['flags']['include_xajax'] = true;