fixed readonly display

This commit is contained in:
Ralf Becker 2004-02-05 13:27:20 +00:00
parent 9d0940e494
commit bd460d0ea1
2 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

@ -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 = '';