fixed grid in cf widget displays border, if options are set

This commit is contained in:
Ralf Becker 2011-08-18 09:25:14 +00:00
parent 43e9cb2126
commit d32ce66d91

View File

@ -198,6 +198,7 @@ class customfields_widget
$cell['type'] = 'grid';
$cell['data'] = array(array());
$cell['rows'] = $cell['cols'] = 0;
$cell['size'] = '';
$n = 1;
foreach($fields as $lname => $field)
@ -474,7 +475,6 @@ class customfields_widget
unset($label);
}
}
$cell['size'] = '';
if ($type != 'customfields-list')
{
$cell['data'][0]['A'] = '100';