Etemplate: Fix sub-templates not expanded and children not processed if id is set but does not expand

This commit is contained in:
nathangray 2020-11-04 16:10:09 -07:00
parent 8b28d8ffd0
commit 10b98897d2

View File

@ -247,6 +247,10 @@ class Template extends Etemplate\Widget
// Check for template from content, and run over it
// templates included via template tag have their name to load them from in attribute "template"
$expand_name = self::expand_name($this->id ? $this->id : $this->attrs['template'], '','','','',self::$request->content);
if(!$expand_name && $this->id && $this->attrs['template'])
{
$expand_name = $this->attrs['template'];
}
if($this->original_name)
{
$expand_name = self::expand_name($this->original_name, '','','','',self::$request->content);