Skip to content

Commit

Permalink
Merge pull request #11923 from frederic34/patch-14
Browse files Browse the repository at this point in the history
Update box_contacts.php to see email
  • Loading branch information
eldy committed Sep 27, 2019
2 parents 138b494 + 87d4125 commit 13473be
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions htdocs/core/boxes/box_contacts.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ public function loadBox($max = 5)
if ($user->rights->societe->lire && $user->rights->societe->contact->lire)
{
$sql = "SELECT sp.rowid as id, sp.lastname, sp.firstname, sp.civility as civility_id, sp.datec, sp.tms, sp.fk_soc, sp.statut as status";
$sql.= ", sp.address, sp.zip, sp.town, sp.phone, sp.phone_perso, sp.phone_mobile";
$sql.= ", s.nom as socname, s.name_alias";
$sql.= ", sp.address, sp.zip, sp.town, sp.phone, sp.phone_perso, sp.phone_mobile, sp.email as spemail";
$sql.= ", s.nom as socname, s.name_alias, s.email as semail";
$sql.= ", s.client, s.fournisseur, s.code_client, s.code_fournisseur";
$sql.= " FROM ".MAIN_DB_PREFIX."socpeople as sp";
$sql.= " LEFT JOIN ".MAIN_DB_PREFIX."societe as s ON sp.fk_soc = s.rowid";
Expand Down Expand Up @@ -117,12 +117,14 @@ public function loadBox($max = 5)
$contactstatic->phone_pro = $objp->phone;
$contactstatic->phone_perso = $objp->phone_perso;
$contactstatic->phone_mobile = $objp->phone_mobile;
$contactstatic->email = $objp->spemail;
$contactstatic->address = $objp->address;
$contactstatic->zip = $objp->zip;
$contactstatic->town = $objp->town;

$societestatic->id = $objp->fk_soc;
$societestatic->name = $objp->socname;
$societestatic->email = $objp->semail;
$societestatic->name_alias = $objp->name_alias;
$societestatic->code_client = $objp->code_client;
$societestatic->code_fournisseur = $objp->code_fournisseur;
Expand Down

0 comments on commit 13473be

Please sign in to comment.