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;