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 '| '.img_object($langs->trans("ShowPropal"),"propal").' '.$objp->ref.' | '."\n";
//print ''.dol_print_date($db->jdate($objp->startdate)).' | '."\n";
print ''.ConvertSecondToTime($objp->duration).' | '."\n";