From 7b01f31d7d3846feb33d014b41abc2e49dd2dbd4 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Wed, 17 Sep 2008 14:47:47 +0000 Subject: [PATCH] Readonly parameter is pass-by-reference, can't be an expression --- etemplate/inc/class.uietemplate.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/etemplate/inc/class.uietemplate.inc.php b/etemplate/inc/class.uietemplate.inc.php index 07aab6877b..9048a9836d 100644 --- a/etemplate/inc/class.uietemplate.inc.php +++ b/etemplate/inc/class.uietemplate.inc.php @@ -1004,7 +1004,8 @@ class etemplate extends boetemplate $cell['onchange'] = $this->expand_name($cell['onchange'],$show_c,$show_row,$content['.c'],$content['.row'],$content); } if (!$ext_type) $ext_type = $type; - $extra_label = $this->extensionPreProcess($type,$form_name,$value,$cell,$readonlys[$name] || $readonlys['__ALL__']); + $extension_readonly = $readonlys[$name] || $readonlys['__ALL__']; + $extra_label = $this->extensionPreProcess($type,$form_name,$value,$cell,$extension_readonly); $readonly = $cell['readonly'] !== false && ($readonly || $cell['readonly']); // might be set or unset (===false) by extension