mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-26 07:49:28 +01:00
"extend readonly handling of button to images (images with a link have a similar function)
setting their name in $readonlys, removes the image completly"
This commit is contained in:
parent
4c6b076c97
commit
e5ffe827f6
@ -951,9 +951,10 @@ class etemplate extends boetemplate
|
||||
{
|
||||
$cell['size'] = $this->expand_name($cell['size'],$show_c,$show_row,$content['.c'],$content['.row'],$content);
|
||||
}
|
||||
if ($cell['disabled'] && $readonlys[$name] !== false || $readonly && ($cell['type'] == 'button' || $cell['type'] == 'buttononly') && strpos($cell['size'],',')===false)
|
||||
if ($cell['disabled'] && $readonlys[$name] !== false || $readonly && in_array($cell['type'],array('button','buttononly','image')) && strpos($cell['size'],',')===false)
|
||||
{
|
||||
if ($this->rows == 1) {
|
||||
if ($this->rows == 1)
|
||||
{
|
||||
return ''; // if only one row omit cell
|
||||
}
|
||||
$cell = $this->empty_cell('label','',array('span' => $cell['span'])); // show nothing (keep the css class!)
|
||||
|
Loading…
Reference in New Issue
Block a user