forked from extern/egroupware
Use global template store directly, solves an error with loading sub-templates if they're not in the tree
This commit is contained in:
parent
3093cb6b85
commit
5896c7e103
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user