From beb9f4f1e9e121afb8d0d001f453d14e86cd03b1 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Tue, 9 Feb 2021 21:35:50 +0100 Subject: [PATCH] Fix 2 lines on one line when there is 2 or more sale representatives --- htdocs/comm/propal/list.php | 2 +- htdocs/contrat/list.php | 3 ++- htdocs/projet/list.php | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/comm/propal/list.php b/htdocs/comm/propal/list.php index 059adb95685..cc296e4472a 100644 --- a/htdocs/comm/propal/list.php +++ b/htdocs/comm/propal/list.php @@ -1381,7 +1381,7 @@ if ($resql) $userstatic->job = $val['job']; $userstatic->gender = $val['gender']; //print '
': - print ($nbofsalesrepresentative < 3) ? $userstatic->getNomUrl(-1, '', 0, 0, 12) : $userstatic->getNomUrl(-2); + print ($nbofsalesrepresentative < 2) ? $userstatic->getNomUrl(-1, '', 0, 0, 12) : $userstatic->getNomUrl(-2); $j++; if ($j < $nbofsalesrepresentative) { print ' '; diff --git a/htdocs/contrat/list.php b/htdocs/contrat/list.php index a4fea62133c..1226d578f2f 100644 --- a/htdocs/contrat/list.php +++ b/htdocs/contrat/list.php @@ -33,6 +33,7 @@ require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/contrat/class/contrat.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/html.formother.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/html.formfile.class.php'; +require_once DOL_DOCUMENT_ROOT.'/core/class/html.formcompany.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/company.lib.php'; @@ -740,7 +741,7 @@ while ($i < min($num, $limit)) $userstatic->gender = $val['gender']; //print '
': - print ($nbofsalesrepresentative < 3) ? $userstatic->getNomUrl(-1, '', 0, 0, 12) : $userstatic->getNomUrl(-2); + print ($nbofsalesrepresentative < 2) ? $userstatic->getNomUrl(-1, '', 0, 0, 12) : $userstatic->getNomUrl(-2); $j++; if ($j < $nbofsalesrepresentative) { print ' '; diff --git a/htdocs/projet/list.php b/htdocs/projet/list.php index b8ab088cf85..81f3f1783f7 100644 --- a/htdocs/projet/list.php +++ b/htdocs/projet/list.php @@ -800,7 +800,7 @@ while ($i < min($num, $limit)) $userstatic->phone = $val['phone']; $userstatic->job = $val['job']; $userstatic->gender = $val['gender']; - print ($nbofsalesrepresentative < 3) ? $userstatic->getNomUrl(-1, '', 0, 0, 12) : $userstatic->getNomUrl(-2); + print ($nbofsalesrepresentative < 2) ? $userstatic->getNomUrl(-1, '', 0, 0, 12) : $userstatic->getNomUrl(-2); $j++; if ($j < $nbofsalesrepresentative) { print ' ';