diff --git a/api/src/Etemplate/Widget/Template.php b/api/src/Etemplate/Widget/Template.php index b84f3d4b2f..890d5bd389 100644 --- a/api/src/Etemplate/Widget/Template.php +++ b/api/src/Etemplate/Widget/Template.php @@ -252,7 +252,7 @@ class Template extends Etemplate\Widget $expand_name = self::expand_name($this->original_name, '','','','',self::$request->content); } //error_log("$this running $method_name() cname: {$this->id} -> expand_name: $expand_name"); - if($expand_name && $expand_name != $this->id) + if($expand_name && ($expand_name != $this->id || count($this->children) == 0)) { if (($row_template = self::instance($expand_name))) {