Merge pull request #12207 from altatof/sortcontact
Sort contacts by lastname, firstname instead of nothing
This commit is contained in:
commit
8f5b0f5d4d
@ -2357,6 +2357,7 @@ class Societe extends CommonObject
|
||||
$sql = "SELECT rowid, email, statut, phone_mobile, lastname, poste, firstname";
|
||||
$sql.= " FROM ".MAIN_DB_PREFIX."socpeople";
|
||||
$sql.= " WHERE fk_soc = ".$this->id;
|
||||
$sql.= " ORDER BY lastname, firstname";
|
||||
|
||||
$resql=$this->db->query($sql);
|
||||
if ($resql)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user