mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 18:03:39 +01:00
Only create new request if it doesn't already exist. Fixes missing information when app constructor creates new template, and get_rows is called for the first time from a new instance
This commit is contained in:
parent
e5c508a609
commit
60f474da12
@ -65,9 +65,12 @@ class etemplate_new extends etemplate_widget_template
|
|||||||
|
|
||||||
if ($name) $this->read($name,$template='default',$lang='default',$group=0,$version='',$load_via);
|
if ($name) $this->read($name,$template='default',$lang='default',$group=0,$version='',$load_via);
|
||||||
|
|
||||||
// generate new etemplate request object
|
// generate new etemplate request object, if not already existing
|
||||||
self::$request = etemplate_request::read();
|
if(!self::$request)
|
||||||
self::$request->content = array();
|
{
|
||||||
|
self::$request = etemplate_request::read();
|
||||||
|
self::$request->content = array();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user