Fix: colspan for extrafields

This commit is contained in:
Laurent Destailleur 2014-02-12 00:23:15 +01:00
parent 2d6b5e377c
commit 266b413139
2 changed files with 4 additions and 4 deletions

View File

@ -2144,7 +2144,7 @@ abstract class CommonObject
$error=0;
if (! empty($conf->global->MAIN_EXTRAFIELDS_DISABLED)) return 0; // For avoid conflicts if trigger used
if (! empty($this->array_options))
{
// Check parameters
@ -2303,7 +2303,7 @@ abstract class CommonObject
$label = '<span class="fieldrequired">'.$label.'</span>';
$out .= '<td>'.$label.'</td>';
$out .='<td colspan="'.$colspan.'">';
$out .='<td'.($colspan?' colspan="'.$colspan.'"':'').'>';
switch($mode) {
case "view":

View File

@ -800,11 +800,11 @@ else
print '</td></tr>';
// Other attributes
$parameters=array('colspan' => ' colspan="2"');
$parameters=array('colspan' => 0);
$reshook=$hookmanager->executeHooks('formObjectOptions',$parameters,$object,$action); // Note that $action and $object may have been modified by hook
if (empty($reshook) && ! empty($extrafields->attribute_label))
{
print $object->showOptionals($extrafields,'edit');
print $object->showOptionals($extrafields,'edit',$parameters);
}
// Note (private, no output on invoices, propales...)