Fix sub-templates may not have been properly validated

This commit is contained in:
nathan 2024-12-10 15:15:17 -07:00
parent db37c3b116
commit 99a4c87256

View File

@ -252,7 +252,7 @@ class Template extends Etemplate\Widget
$expand_name = self::expand_name($this->original_name, '','','','',self::$request->content); $expand_name = self::expand_name($this->original_name, '','','','',self::$request->content);
} }
//error_log("$this running $method_name() cname: {$this->id} -> expand_name: $expand_name"); //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 || $cname !== $old_cname)
{ {
if (($row_template = self::instance($expand_name))) if (($row_template = self::instance($expand_name)))
{ {