diff --git a/htdocs/comm/action/index.php3 b/htdocs/comm/action/index.php3 index 7dd9fb66c91..91981e56b45 100644 --- a/htdocs/comm/action/index.php3 +++ b/htdocs/comm/action/index.php3 @@ -133,7 +133,7 @@ if ($socid) $societe = new Societe($db); $societe->fetch($socid); - $sql = "SELECT a.id,".$db->pdate("a.datea")." as da, c.libelle, u.code, a.note, u.name, u.firstname "; + $sql = "SELECT a.id,".$db->pdate("a.datea")." as da, c.libelle, u.code, a.note, u.name, u.firstname, a.fk_contact "; $sql .= " FROM llx_actioncomm as a, c_actioncomm as c, llx_user as u"; $sql .= " WHERE a.fk_soc = $socid AND c.id=a.fk_action AND a.fk_user_author = u.rowid"; @@ -154,6 +154,7 @@ if ($socid) print ''; print 'Date'; print "Action"; + print 'Contact'; print "\n"; $var=True; @@ -166,6 +167,18 @@ if ($socid) print ""; print "" .strftime("%Y %b %d %H:%M",$obj->da)."\n"; print ''.$obj->libelle.''; + print ''; + if ($obj->fk_contact) + { + $cont = new Contact($db); + $cont->fetch($obj->fk_contact); + print ''.$cont->fullname.''; + } + else + { + print " "; + } + print ''; print "\n"; $i++; @@ -244,7 +257,7 @@ else /* * Contact */ - print ''; + print ''; if ($obj->fk_contact) { $cont = new Contact($db);