diff --git a/api/src/Framework/Ajax.php b/api/src/Framework/Ajax.php index d322df254e..721845c7c2 100755 --- a/api/src/Framework/Ajax.php +++ b/api/src/Framework/Ajax.php @@ -546,8 +546,13 @@ abstract class Ajax extends Api\Framework // fix app admin menus to use admin.admin_ui.index loader if (($type == 'admin' || $menu_title == lang('Admin')) && $appname != 'admin') { - $file = preg_replace("/^(javascript:egw_link_handler\(')(.*)menuaction=([^&]+)(.*)(','[^']+'\))$/", - '$1$2menuaction=admin.admin_ui.index&load=$3$4&ajax=true\',\'admin\')', $file_was=$file); + foreach($file as &$link) + { + preg_match('/ajax=(true|false)/', $link, $ajax); + $link = preg_replace("/^(javascript:egw_link_handler\(')(.*)menuaction=([^&]+)(.*)(','[^']+'\))$/", + '$1$2menuaction=admin.admin_ui.index&load=$3$4&ajax=' . ($ajax[1] ? $ajax[1] : 'true') .'\',\'admin\')', $file_was=$link); + } + } $this->sideboxes[$appname][$menu_title] = $file; diff --git a/infolog/inc/class.infolog_hooks.inc.php b/infolog/inc/class.infolog_hooks.inc.php index ea064d2133..8c48e0ac5c 100644 --- a/infolog/inc/class.infolog_hooks.inc.php +++ b/infolog/inc/class.infolog_hooks.inc.php @@ -113,7 +113,7 @@ class infolog_hooks 'menuaction' => 'infolog.infolog_ui.admin', // As long as CKEditor needs CSP exceptions, this needs to // load in an iframe - //'ajax' => 'true', + 'ajax' => 'false', )), 'Global Categories' => Egw::link('/index.php',array( 'menuaction' => 'admin.admin_categories.index',