mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-22 05:12:25 +01:00
"hopefully last fix for Raphaels patch ;-)
if readonlys[__ALL__] is set, also set readonlys[$name] (but only then as for extensions (eg. tabs) $readonlys[$name] can be an array!)"
This commit is contained in:
parent
c5926eeba2
commit
9d9fc41658
@ -1004,9 +1004,9 @@ 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;
|
||||
$extension_readonly = $readonlys[$name] || $readonlys['__ALL__'];
|
||||
$extra_label = $this->extensionPreProcess($type,$form_name,$value,$cell,$extension_readonly);
|
||||
$readonlys[$name] =& $extension_readonly;
|
||||
// if readonlys[__ALL__] is set, also set readonlys[$name] (but only then as for extensions (eg. tabs) $readonlys[$name] can be an array!)
|
||||
if ($readonlys['__ALL__']) $readonlys[$name] = true;
|
||||
$extra_label = $this->extensionPreProcess($type,$form_name,$value,$cell,$readonlys[$name]);
|
||||
|
||||
$readonly = $cell['readonly'] !== false && ($readonly || $cell['readonly']); // might be set or unset (===false) by extension
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user