Revert "Fix sub-templates may not have been properly validated" as it sends calendar in an endless recursion :(

This reverts commit 99a4c87256.
This commit is contained in:
ralf 2024-12-11 08:30:54 +01:00
parent 99a4c87256
commit 4eeeb3e3e1

View File

@ -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 || $cname !== $old_cname)
if($expand_name && $expand_name != $this->id)
{
if (($row_template = self::instance($expand_name)))
{