Admin - Fix keyboard shortcuts not properly loaded for customfields for some apps

Infolog & tracker at least, maybe others.
This commit is contained in:
nathangray 2019-09-03 14:50:18 -06:00
parent d5950d51e0
commit 923cc0b01b

View File

@ -271,6 +271,8 @@ class admin_customfields
Framework::includeCSS('admin','app');
Api\Translation::add_app('admin');
// Set app to admin to make sure actions are correctly loaded into admin
$GLOBALS['egw_info']['flags']['currentapp'] = 'admin';
$GLOBALS['egw_info']['flags']['app_header'] = $GLOBALS['egw_info']['apps'][$this->appname]['title'].' - '.lang('Custom fields');
// Some logic to make sure extending class (if there is one) gets called