mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-30 17:58:39 +01:00
Make sure global categories is infolog when in infolog. Other apps (tracker) may grab it first if we don't set it here
This commit is contained in:
parent
cbbd03f388
commit
ab601bf94c
@ -91,6 +91,13 @@ class infolog_ui
|
|||||||
function __construct()
|
function __construct()
|
||||||
{
|
{
|
||||||
if ($GLOBALS['egw_info']['flags']['currentapp'] != 'infolog') translation::add_app('infolog');
|
if ($GLOBALS['egw_info']['flags']['currentapp'] != 'infolog') translation::add_app('infolog');
|
||||||
|
|
||||||
|
// Make sure Global category is infolog - on first load, it may not be
|
||||||
|
if($GLOBALS['egw_info']['flags']['currentapp'] == 'infolog' && !$GLOBALS['egw']->categories->app_name)
|
||||||
|
{
|
||||||
|
$GLOBALS['egw']->categories = new categories();
|
||||||
|
}
|
||||||
|
|
||||||
$this->bo = new infolog_bo();
|
$this->bo = new infolog_bo();
|
||||||
|
|
||||||
$this->tmpl = new etemplate();
|
$this->tmpl = new etemplate();
|
||||||
|
Loading…
Reference in New Issue
Block a user