diff --git a/api/src/Etemplate/Widget.php b/api/src/Etemplate/Widget.php index b706dfd4d0..59ed4c980e 100644 --- a/api/src/Etemplate/Widget.php +++ b/api/src/Etemplate/Widget.php @@ -209,7 +209,7 @@ class Widget // expand attributes values, otherwise eg. validation can not use attrs referencing to content if ($value[0] == '@' || strpos($value, '$cont') !== false) { - $template->attrs[$reader->name] = $value = self::expand_name($value, null, null, null, null, + $value = self::expand_name($value, null, null, null, null, isset(self::$cont) ? self::$cont : self::$request->content); }