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

This commit is contained in:
Ralf Becker 2011-08-18 09:22:59 +00:00
parent b892149294
commit d6509ad506

View File

@ -199,6 +199,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)
@ -481,7 +482,6 @@ class customfields_widget
unset($label);
}
}
$cell['size'] = '';
if ($type != 'customfields-list')
{
$cell['data'][0]['A'] = '100';