mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 23:00:56 +01:00
"fix to simplify implementation of view dialogs:
$readonlys['__ALL__'] = true; $readonlys['button[cancel]'] = false; --> makes all widgets readonly, but the ones explicitly set to false"
This commit is contained in:
parent
ad5d2c3941
commit
35396fb309
@ -970,7 +970,7 @@ class etemplate extends boetemplate
|
||||
|
||||
$options = '';
|
||||
if ($readonly = $cell['readonly'] && $readonlys[$name] !== false || // allow to overwrite readonly settings of a cell
|
||||
@$readonlys[$name] && !is_array($readonlys[$name]) || $readonlys['__ALL__'] ||
|
||||
@$readonlys[$name] && !is_array($readonlys[$name]) || $readonlys['__ALL__'] && (!is_string($name) || $readonlys[$name] !== false) ||
|
||||
!empty($name) && is_string($name) && ($p = strrpos($name,'[')) !== false && ($parent=substr($name,0,$p)) && $readonlys[$parent]) // allow also set parent readonly (instead each child)
|
||||
{
|
||||
$options .= ' readonly="readonly"';
|
||||
|
Loading…
Reference in New Issue
Block a user