diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php
index 869a989e55d..8f45a53e059 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -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 = ''.$label.'';
$out .= '
'.$label.' | ';
- $out .='';
+ $out .=' | ';
switch($mode) {
case "view":
diff --git a/htdocs/product/fiche.php b/htdocs/product/fiche.php
index 9193b8e103e..1ab03bb6a9b 100644
--- a/htdocs/product/fiche.php
+++ b/htdocs/product/fiche.php
@@ -800,11 +800,11 @@ else
print ' | ';
// 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...)