set span & class from original cell for single fields

This commit is contained in:
Ralf Becker 2010-08-05 15:36:49 +00:00
parent 42093a106e
commit ab443621be

View File

@ -436,6 +436,7 @@ class customfields_widget
}
if ($singlefield) // a single field, can & need to be returned instead of the cell (no grid)
{
$input['span'] = $cell['span']; // set span & class from original cell
$cell = $input;
if ($type == 'customfields') $cell['label'] = $field['label'];
$value = $value[$this->prefix.$lname];