From eecfbf9670ec7a3faee3097a700a225405dd605c Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 24 May 2013 18:49:40 +0200 Subject: [PATCH] Fix: Bad link if not supplier defined for product --- htdocs/fourn/product/liste.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/fourn/product/liste.php b/htdocs/fourn/product/liste.php index fc35d0a8057..3f8b3ed0353 100644 --- a/htdocs/fourn/product/liste.php +++ b/htdocs/fourn/product/liste.php @@ -231,7 +231,9 @@ if ($resql) $companystatic->nom=$objp->nom; $companystatic->id=$objp->socid; - print ''.$companystatic->getNomUrl(1,'supplier').''; + print ''; + if ($companystatic->id > 0) print $companystatic->getNomUrl(1,'supplier'); + print ''; print ''.price($objp->price).'';