Fix: [ bug #237 ] Intervention status is not displayed on the client's
form
This commit is contained in:
parent
8032f25487
commit
b75688f76b
@ -641,7 +641,7 @@ if ($id > 0)
|
|||||||
*/
|
*/
|
||||||
if ($conf->ficheinter->enabled && $user->rights->ficheinter->lire)
|
if ($conf->ficheinter->enabled && $user->rights->ficheinter->lire)
|
||||||
{
|
{
|
||||||
$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 .= " FROM ".MAIN_DB_PREFIX."societe as s, ".MAIN_DB_PREFIX."fichinter as f";
|
||||||
$sql .= " WHERE f.fk_soc = s.rowid";
|
$sql .= " WHERE f.fk_soc = s.rowid";
|
||||||
$sql .= " AND s.rowid = ".$object->id;
|
$sql .= " AND s.rowid = ".$object->id;
|
||||||
@ -666,9 +666,11 @@ if ($id > 0)
|
|||||||
$i = 0;
|
$i = 0;
|
||||||
while ($i < $num && $i < $MAXLIST)
|
while ($i < $num && $i < $MAXLIST)
|
||||||
{
|
{
|
||||||
$fichinter_static->id=$objp->id;
|
|
||||||
|
|
||||||
$objp = $db->fetch_object($resql);
|
$objp = $db->fetch_object($resql);
|
||||||
|
|
||||||
|
$fichinter_static->id=$objp->id;
|
||||||
|
$fichinter_static->statut=$objp->fk_statut;
|
||||||
|
|
||||||
print "<tr ".$bc[$var].">";
|
print "<tr ".$bc[$var].">";
|
||||||
print '<td nowrap="nowrap"><a href="'.DOL_URL_ROOT.'/fichinter/fiche.php?id='.$objp->id.'">'.img_object($langs->trans("ShowPropal"),"propal").' '.$objp->ref.'</a></td>'."\n";
|
print '<td nowrap="nowrap"><a href="'.DOL_URL_ROOT.'/fichinter/fiche.php?id='.$objp->id.'">'.img_object($langs->trans("ShowPropal"),"propal").' '.$objp->ref.'</a></td>'."\n";
|
||||||
//print '<td align="right">'.dol_print_date($db->jdate($objp->startdate)).'</td>'."\n";
|
//print '<td align="right">'.dol_print_date($db->jdate($objp->startdate)).'</td>'."\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user