Etemplate - keep child after instanciating

This commit is contained in:
nathangray 2017-09-08 12:43:28 -06:00
parent 1b36ecb962
commit 27fab7c259

View File

@ -159,6 +159,7 @@ class Etemplate extends Etemplate\Widget\Template
// 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 = self::instance($this->name, $this->template_set, $this->version, $this->laod_via);
if (!$template) throw new Exception\AssertionFailed("Template $this->name not instanciable! Maybe you forgot to rename template id.");
$this->children = array($template);
$template->run('beforeSendToClient', array('', array('cont'=>$content)));
// some apps (eg. InfoLog) set app_header only in get_rows depending on filter settings