diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php
index 2eab0a5fe38..1b0033f5d3f 100644
--- a/htdocs/core/class/html.form.class.php
+++ b/htdocs/core/class/html.form.class.php
@@ -1480,8 +1480,12 @@ class Form
$label = $objp->label;
if ($filterkey && $filterkey != '') $label=preg_replace('/('.preg_quote($filterkey).')/i','$1',$label,1);
- $opt.=$objp->ref.' ('.$objp->ref_fourn.') - ';
- $outval.=$objRef.' ('.$objRefFourn.') - ';
+ $opt.=$objp->ref;
+ if (! empty($objp->idprodfournprice)) $opt.=' ('.$objp->ref_fourn.')';
+ $opt.=' - ';
+ $outval.=$objRef;
+ if (! empty($objp->idprodfournprice)) $outval.=' ('.$objRefFourn.')';
+ $outval.=' - ';
$opt.=dol_trunc($objp->label,18).' - ';
$outval.=dol_trunc($label,18).' - ';
@@ -1532,7 +1536,7 @@ class Form
}
}
else
- {
+ {
$opt.= $langs->trans("NoPriceDefinedForThisSupplier");
$outval.=$langs->transnoentities("NoPriceDefinedForThisSupplier");
}