From cae7b6c39c6630cb2a6212c9cab0c19aa6d87da3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Wed, 21 Dec 2011 15:38:00 +0100 Subject: [PATCH] Fix: statut into ficheinter --- htdocs/comm/fiche.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index 40a6a2535ab..89cda06944f 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -632,7 +632,7 @@ if ($socid > 0) { print ''; - $sql = "SELECT s.nom, s.rowid, f.rowid as id, f.ref, f.duree as duration, f.datei as startdate"; + $sql = "SELECT s.nom, s.rowid, f.rowid as id, f.ref, f.fk_statut, f.duree as duration, f.datei as startdate"; $sql .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."fichinter as f"; $sql .= " WHERE f.fk_soc = s.rowid"; $sql .= " AND s.rowid = ".$objsoc->id; @@ -655,10 +655,12 @@ if ($socid > 0) $i = 0; while ($i < $num && $i < $MAXLIST) { - $fichinter_static->id=$objp->id; - $objp = $db->fetch_object($resql); - print ""; + + $fichinter_static->id=$objp->id; + $fichinter_static->statut=$objp->fk_statut; + + print ""; print ''."\n"; //print ''."\n"; print ''."\n";
'.img_object($langs->trans("ShowPropal"),"propal").' '.$objp->ref.''.dol_print_date($db->jdate($objp->startdate)).''.ConvertSecondToTime($objp->duration).'