mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +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);
|
||||
|
||||
// generate new etemplate request object
|
||||
self::$request = etemplate_request::read();
|
||||
self::$request->content = array();
|
||||
// generate new etemplate request object, if not already existing
|
||||
if(!self::$request)
|
||||
{
|
||||
self::$request = etemplate_request::read();
|
||||
self::$request->content = array();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user