diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php
index eee15e0a0c0..4bb794a372a 100644
--- a/htdocs/comm/propal/list.php
+++ b/htdocs/comm/propal/list.php
@@ -765,6 +765,7 @@ if ($resql)
$objectstatic->id = $obj->rowid;
$objectstatic->ref = $obj->ref;
+ $objectstatic->ref_client = $obj->ref_client;
$objectstatic->note_public = $obj->note_public;
$objectstatic->note_private = $obj->note_private;
@@ -813,7 +814,7 @@ if ($resql)
if (!empty($arrayfields['p.ref_client']['checked']))
{
// Customer ref
- print '
';
+ print ' | ';
print $obj->ref_client;
print ' | ';
if (!$i) $totalarray['nbfield']++;
diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php
index 0f1b6e24e54..3971914304d 100644
--- a/htdocs/commande/list.php
+++ b/htdocs/commande/list.php
@@ -941,7 +941,7 @@ if ($resql)
// Ref customer
if (!empty($arrayfields['c.ref_client']['checked']))
{
- print ''.$obj->ref_client.' | ';
+ print ''.$obj->ref_client.' | ';
if (!$i) $totalarray['nbfield']++;
}
diff --git a/htdocs/compta/facture/list.php b/htdocs/compta/facture/list.php
index db1ba28c14e..6fe15241c5a 100644
--- a/htdocs/compta/facture/list.php
+++ b/htdocs/compta/facture/list.php
@@ -982,6 +982,7 @@ if ($resql)
$facturestatic->id = $obj->id;
$facturestatic->ref = $obj->ref;
+ $facturestatic->ref_client = $obj->ref_client;
$facturestatic->type = $obj->type;
$facturestatic->total_ht = $obj->total_ht;
$facturestatic->total_tva = $obj->total_vat;
@@ -1071,7 +1072,7 @@ if ($resql)
// Customer ref
if (!empty($arrayfields['f.ref_client']['checked']))
{
- print '';
+ print ' | ';
print $obj->ref_client;
print ' | ';
if (!$i) $totalarray['nbfield']++;
diff --git a/htdocs/fourn/facture/list.php b/htdocs/fourn/facture/list.php
index 9b865cae3e6..6dc24c71b57 100644
--- a/htdocs/fourn/facture/list.php
+++ b/htdocs/fourn/facture/list.php
@@ -433,8 +433,8 @@ if ($resql)
}
$param = '&socid='.$socid;
- if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param .= '&contextpage='.$contextpage;
- if ($limit > 0 && $limit != $conf->liste_limit) $param .= '&limit='.$limit;
+ if (!empty($contextpage) && $contextpage != $_SERVER["PHP_SELF"]) $param .= '&contextpage='.urlencode($contextpage);
+ if ($limit > 0 && $limit != $conf->liste_limit) $param .= '&limit='.urlencode($limit);
if ($search_all) $param .= '&search_all='.urlencode($search_all);
if ($day) $param .= '&day='.urlencode($day);
if ($month) $param .= '&month='.urlencode($month);
@@ -455,9 +455,9 @@ if ($resql)
if ($search_amount_no_tax) $param .= '&search_amount_no_tax='.urlencode($search_amount_no_tax);
if ($search_amount_all_tax) $param .= '&search_amount_all_tax='.urlencode($search_amount_all_tax);
if ($search_status >= 0) $param .= "&search_status=".urlencode($search_status);
- if ($show_files) $param .= '&show_files='.$show_files;
- if ($option) $param .= "&option=".$option;
- if ($optioncss != '') $param .= '&optioncss='.$optioncss;
+ if ($show_files) $param .= '&show_files='.urlencode($show_files);
+ if ($option) $param .= "&option=".urlencode($option);
+ if ($optioncss != '') $param .= '&optioncss='.urlencode($optioncss);
// Add $param from extra fields
include DOL_DOCUMENT_ROOT.'/core/tpl/extrafields_list_search_param.tpl.php';
@@ -879,7 +879,7 @@ if ($resql)
// Supplier ref
if (!empty($arrayfields['f.ref_supplier']['checked']))
{
- print '';
+ print ' | ';
print $obj->ref_supplier;
print ' | ';
if (!$i) $totalarray['nbfield']++;