Keep the returned readonly value from the extension

This commit is contained in:
Nathan Gray 2008-09-19 13:35:29 +00:00
parent e4c29d36fc
commit c1e89c5f0a

View File

@ -1006,6 +1006,7 @@ class etemplate extends boetemplate
if (!$ext_type) $ext_type = $type; if (!$ext_type) $ext_type = $type;
$extension_readonly = $readonlys[$name] || $readonlys['__ALL__']; $extension_readonly = $readonlys[$name] || $readonlys['__ALL__'];
$extra_label = $this->extensionPreProcess($type,$form_name,$value,$cell,$extension_readonly); $extra_label = $this->extensionPreProcess($type,$form_name,$value,$cell,$extension_readonly);
$readonlys[$name] =& $extension_readonly;
$readonly = $cell['readonly'] !== false && ($readonly || $cell['readonly']); // might be set or unset (===false) by extension $readonly = $cell['readonly'] !== false && ($readonly || $cell['readonly']); // might be set or unset (===false) by extension