From 089dfce6a76f27eb99d0beb9869cc473cd8dca00 Mon Sep 17 00:00:00 2001 From: Juanjo Menent Date: Wed, 20 Jul 2011 15:33:00 +0000 Subject: [PATCH] Fix: Add name of the third on the list, if applicable --- htdocs/comm/propal.php | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/htdocs/comm/propal.php b/htdocs/comm/propal.php index a89d7e1883d..76726f3a153 100644 --- a/htdocs/comm/propal.php +++ b/htdocs/comm/propal.php @@ -27,7 +27,7 @@ * \file htdocs/comm/propal.php * \ingroup propale * \brief Page of commercial proposals card and list - * \version $Id: propal.php,v 1.611 2011/07/17 19:01:28 eldy Exp $ + * \version $Id: propal.php,v 1.612 2011/07/20 15:33:00 simnandez Exp $ */ require("../main.inc.php"); @@ -1824,10 +1824,16 @@ else $num = $db->num_rows($result); + if ($socid) + { + $soc = new Societe($db); + $soc->fetch($socid); + } + $param='&socid='.$socid.'&viewstatut='.$viewstatut; if ($month) $param.='&month='.$month; if ($year) $param.='&year='.$year; - print_barre_liste($langs->trans('ListOfProposals'), $page,'propal.php',$param,$sortfield,$sortorder,'',$num); + print_barre_liste($langs->trans('ListOfProposals').' - '.($socid?' '.$soc->nom:''), $page,'propal.php',$param,$sortfield,$sortorder,'',$num); $i = 0; print ''; @@ -1970,6 +1976,6 @@ else } $db->close(); -llxFooter('$Date: 2011/07/17 19:01:28 $ - $Revision: 1.611 $'); +llxFooter('$Date: 2011/07/20 15:33:00 $ - $Revision: 1.612 $'); ?>