only replace @ or $cont, no $row_cont as we dont know row, upload/selection of vfs attachments in mail fails otherwise

This commit is contained in:
Ralf Becker 2014-05-22 12:15:11 +00:00
parent b3ee7bc605
commit 090c6eb19f

View File

@ -184,7 +184,7 @@ class etemplate_widget
$template->attrs[$reader->name] = $value = $reader->value;
// expand attributes values, otherwise eg. validation can not use attrs referencing to content
if ($value[0] == '@' || strpos($value, '$') !== false)
if ($value[0] == '@' || strpos($value, '$cont') !== false)
{
$value = self::expand_name($value, null, null, null, null,
isset(self::$cont) ? self::$cont : self::$request->content);