mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +01:00
Fix bug where clicking on a hooked app twice sends you to the hooked app
This commit is contained in:
parent
e50ff25831
commit
7925e33c6f
@ -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('/<form .+name="('. self::$name_form . '[\d]*)"/',self::$request->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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user