mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-23 23:29:20 +01:00
fixed readonly display
This commit is contained in:
parent
9d0940e494
commit
bd460d0ea1
@ -126,6 +126,7 @@
|
||||
$cell['no_lang'] = True;
|
||||
$cell['label'] = strlen($cell['label']) > 1 ? lang($cell['label']) : $cell['label'];
|
||||
}
|
||||
unset($cell['size']);
|
||||
return True;
|
||||
}
|
||||
$tpl = new etemplate;
|
||||
|
@ -41,6 +41,12 @@
|
||||
|
||||
function pre_process($name,&$value,&$cell,&$readonlys,&$extension_data,&$tmpl)
|
||||
{
|
||||
if ($cell['type'] == 'link-to' && ($cell['readonly'] || $readonlys))
|
||||
{
|
||||
// readonly ==> omit the whole widget
|
||||
$cell = $tmpl->empty_cell();
|
||||
return;
|
||||
}
|
||||
if ($cell['type'] == 'link-string')
|
||||
{
|
||||
$str = '';
|
||||
|
Loading…
Reference in New Issue
Block a user