diff --git a/htdocs/contrat/index.php b/htdocs/contrat/index.php
index 1f3a9fa5b99..2a7c9c0d91a 100644
--- a/htdocs/contrat/index.php
+++ b/htdocs/contrat/index.php
@@ -360,7 +360,7 @@ if ($result)
$obj = $db->fetch_object($result);
print '
';
- print '| ';
+ print ' | ';
$staticcontrat->ref = ($obj->ref ? $obj->ref : $obj->cid);
$staticcontrat->id = $obj->cid;
print $staticcontrat->getNomUrl(1, 16);
@@ -425,7 +425,7 @@ if ($resql)
$obj = $db->fetch_object($resql);
print ' |
';
- print '| ';
+ print ' | ';
$staticcontrat->ref = ($obj->ref ? $obj->ref : $obj->fk_contrat);
$staticcontrat->id = $obj->fk_contrat;
print $staticcontrat->getNomUrl(1, 16);
@@ -506,7 +506,7 @@ if ($resql)
print ' |
';
- print '| ';
+ print ' | ';
$staticcontrat->ref = ($obj->ref ? $obj->ref : $obj->fk_contrat);
$staticcontrat->id = $obj->fk_contrat;
print $staticcontrat->getNomUrl(1, 16);
@@ -586,7 +586,7 @@ if ($resql)
print ' |
';
- print '| ';
+ print ' | ';
$staticcontrat->ref = ($obj->ref ? $obj->ref : $obj->fk_contrat);
$staticcontrat->id = $obj->fk_contrat;
print $staticcontrat->getNomUrl(1, 16);
diff --git a/htdocs/contrat/list.php b/htdocs/contrat/list.php
index 70ab37c0380..4b163480035 100644
--- a/htdocs/contrat/list.php
+++ b/htdocs/contrat/list.php
@@ -1,6 +1,6 @@
- * Copyright (C) 2004-2019 Laurent Destailleur
+ * Copyright (C) 2004-2020 Laurent Destailleur
* Copyright (C) 2005-2012 Regis Houssin
* Copyright (C) 2013 Cédric Salvador
* Copyright (C) 2014-2019 Juanjo Menent
@@ -612,9 +612,11 @@ while ($i < min($num, $limit))
}
print '';
+
+ // Ref
if (!empty($arrayfields['c.ref']['checked']))
{
- print '| ';
+ print ' | ';
print $contracttmp->getNomUrl(1);
if ($obj->nb_late) print img_warning($langs->trans("Late"));
if (!empty($obj->note_private) || !empty($obj->note_public)) {
@@ -631,6 +633,7 @@ while ($i < min($num, $limit))
print ' | ';
}
+
if (!empty($arrayfields['c.ref_customer']['checked']))
{
print ''.$contracttmp->getFormatedCustomerRef($obj->ref_customer).' | ';
|