From 5896c7e10367188a677edb27694de7ae43249f0c Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 25 Sep 2014 18:29:18 +0000 Subject: [PATCH] Use global template store directly, solves an error with loading sub-templates if they're not in the tree --- etemplate/js/et2_widget_template.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etemplate/js/et2_widget_template.js b/etemplate/js/et2_widget_template.js index 7eeab7c94b..29d02532ab 100644 --- a/etemplate/js/et2_widget_template.js +++ b/etemplate/js/et2_widget_template.js @@ -88,7 +88,7 @@ var et2_template = et2_DOMWidget.extend( // Check to see if XML is known var xml = null; - var templates = this.getRoot().getInstanceManager().templates; + var templates = etemplate2.prototype.templates || this.getRoot().getInstanceManager().templates; if(!(xml = templates[template_name])) { // Check to see if ID is short form --> prepend parent/top-level name