diff --git a/htdocs/core/tpl/objectline_edit.tpl.php b/htdocs/core/tpl/objectline_edit.tpl.php
index 153d4b2b309..d5eac3e83c2 100644
--- a/htdocs/core/tpl/objectline_edit.tpl.php
+++ b/htdocs/core/tpl/objectline_edit.tpl.php
@@ -131,7 +131,7 @@ $coldisplay++;
$temps = $line->showOptionals($extrafields, 'edit', array('class'=>'tredited'), '', '', 1, 'line');
if (!empty($temps)) {
print '
';
}
}
diff --git a/htdocs/fourn/facture/card.php b/htdocs/fourn/facture/card.php
index 24b35896498..bfac45b15ac 100644
--- a/htdocs/fourn/facture/card.php
+++ b/htdocs/fourn/facture/card.php
@@ -2230,11 +2230,9 @@ if ($action == 'create')
}
} else {
if ($id > 0 || !empty($ref)) {
- /* *************************************************************************** */
- /* */
- /* Fiche en mode visu ou edition */
- /* */
- /* *************************************************************************** */
+ //
+ // View or edit mode
+ //
$now = dol_now();
@@ -3104,8 +3102,9 @@ if ($action == 'create')
if (!empty($conf->global->SUPPLIER_INVOICE_WITH_PREDEFINED_PRICES_ONLY)) $senderissupplier = 1;
// Show object lines
- if (!empty($object->lines))
+ if (!empty($object->lines)) {
$ret = $object->printObjectLines($action, $societe, $mysoc, $lineid, 1);
+ }
$num = count($object->lines);