From 27fab7c25976c65dbbbebfa5f2325cf406639a1b Mon Sep 17 00:00:00 2001 From: nathangray Date: Fri, 8 Sep 2017 12:43:28 -0600 Subject: [PATCH] Etemplate - keep child after instanciating --- api/src/Etemplate.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/Etemplate.php b/api/src/Etemplate.php index bf560bc605..ce1eaa6034 100644 --- a/api/src/Etemplate.php +++ b/api/src/Etemplate.php @@ -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