mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 00:58:55 +01:00
throw exception if no name is given for instanciation of template
This commit is contained in:
parent
d5c2a03f51
commit
3bc322690e
@ -119,6 +119,7 @@ class etemplate_new extends etemplate_widget_template
|
||||
if (self::$request->output_mode == -1) self::$request->output_mode = 0;
|
||||
self::$request->template = $this->as_array();
|
||||
|
||||
if (empty($this->name)) throw new egw_exception_assertion_failed("Template name is not set '$this->name' !");
|
||||
// instanciate template to fill self::$request->sel_options for select-* widgets
|
||||
// not sure if we want to handle it this way, thought otherwise we will have a few ajax request for each dialog fetching predefined selectboxes
|
||||
$template = etemplate_widget_template::instance($this->name, $this->template_set, $this->version, $this->laod_via);
|
||||
|
Loading…
Reference in New Issue
Block a user