diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php
index 1fb0fe17a75..bbd11c8f522 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -6571,7 +6571,8 @@ abstract class CommonObject
/**
- * Function to show lines of extrafields with output datas
+ * Function to show lines of extrafields with output datas.
+ * This function is responsible to output the
and | according to correct number of columns received into $params['colspan']
*
* @param Extrafields $extrafields Extrafield Object
* @param string $mode Show output (view) or input (edit) for extrafield
diff --git a/htdocs/reception/card.php b/htdocs/reception/card.php
index d4c0130ce84..4989e0484a2 100644
--- a/htdocs/reception/card.php
+++ b/htdocs/reception/card.php
@@ -1180,9 +1180,7 @@ if ($action == 'create')
$line->array_options = array_merge($line->array_options, $srcLine->array_options);
- print ' |
';
print $line->showOptionals($extrafields, 'edit', array('style'=>'class="oddeven"', 'colspan'=>$colspan), $indiceAsked);
- print '
';
}
$indiceAsked++;
@@ -1989,7 +1987,7 @@ elseif ($id || $ref)
$colspan = empty($conf->productbatch->enabled) ? 8 : 9;
$line = new CommandeFournisseurDispatch($db);
$line->fetch_optionals($lines[$i]->id);
- print '';
+
if ($action == 'editline' && $lines[$i]->id == $line_id)
{
print $line->showOptionals($extrafields, 'edit', array('colspan'=>$colspan), $indiceAsked);
@@ -1998,7 +1996,6 @@ elseif ($id || $ref)
{
print $line->showOptionals($extrafields, 'view', array('colspan'=>$colspan), $indiceAsked);
}
- print '
';
}
}