diff --git a/htdocs/comm/index.php3 b/htdocs/comm/index.php3 index 4cdb6041151..f1adf646ecf 100644 --- a/htdocs/comm/index.php3 +++ b/htdocs/comm/index.php3 @@ -132,14 +132,13 @@ if ( $db->query($sql) ) */ print ''; -$sql = "SELECT a.id, ".$db->pdate("a.datea")." as da, c.libelle, a.fk_user_author, a.fk_contact, p.name, s.nom as sname"; -$sql .= " FROM llx_actioncomm as a, c_actioncomm as c, llx_socpeople as p, llx_societe as s"; -$sql .= " WHERE c.id=a.fk_action AND a.percent < 100 AND a.fk_user_action = $user->id AND a.fk_contact = p.idp AND p.fk_soc = s.idp"; +$sql = "SELECT a.id, ".$db->pdate("a.datea")." as da, c.libelle, a.fk_user_author, s.nom as sname, s.idp"; +$sql .= " FROM llx_actioncomm as a, c_actioncomm as c, llx_societe as s"; +$sql .= " WHERE c.id=a.fk_action AND a.percent < 100 AND s.idp = a.fk_soc AND a.fk_user_action = $user->id"; $sql .= " ORDER BY a.datea DESC"; if ( $db->query($sql) ) { - print ''; print ''; print ''; @@ -152,7 +151,8 @@ if ( $db->query($sql) ) $var=!$var; print ""; - print ""; + print ""; + print ''; $i++; } $db->free();
Actions à faire
".strftime("%d %b %Y",$obj->da)."id\">$obj->libelle $obj->label$obj->name$obj->sname
id\">$obj->libelle $obj->label'.$obj->sname.'