"need to also empty $name, to fully supress buttons in a box"

This commit is contained in:
Ralf Becker 2009-10-13 12:09:54 +00:00
parent ff91aa6223
commit b97b485700

View File

@ -982,14 +982,14 @@ class etemplate extends boetemplate
{ {
$cell['size'] = $this->expand_name($cell['size'],$show_c,$show_row,$content['.c'],$content['.row'],$content); $cell['size'] = $this->expand_name($cell['size'],$show_c,$show_row,$content['.c'],$content['.row'],$content);
} }
if ($cell['disabled'] && $readonlys[$name] !== false || $readonly && in_array($cell['type'],array('button','buttononly','image')) && 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 return ''; // if only one row omit cell
} }
$cell = $this->empty_cell('label','',array('span' => $cell['span'])); // show nothing (keep the css class!) $cell = $this->empty_cell('label','',array('span' => $cell['span'])); // show nothing (keep the css class!)
$value = ''; $name = $value = '';
} }
$extra_label = True; $extra_label = True;