From 99a4c87256d1c292f2aa6ba3dc88531ecb09e52b Mon Sep 17 00:00:00 2001 From: nathan Date: Tue, 10 Dec 2024 15:15:17 -0700 Subject: [PATCH] Fix sub-templates may not have been properly validated --- api/src/Etemplate/Widget/Template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/Etemplate/Widget/Template.php b/api/src/Etemplate/Widget/Template.php index b84f3d4b2f..8ccc7dd019 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 || $cname !== $old_cname) { if (($row_template = self::instance($expand_name))) {