From 91bce008d8d318cdb69fef25007361ec1557d91a Mon Sep 17 00:00:00 2001 From: altairis Date: Wed, 23 Oct 2019 17:28:14 +0200 Subject: [PATCH 1/3] sort contact list on lastname --- htdocs/societe/class/societe.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index c4c702bc73b..49ac815cf36 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -2367,6 +2367,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) From 8ed6b41fc236d6d36144bc4d8b0a64fd96063982 Mon Sep 17 00:00:00 2001 From: altairis Date: Wed, 23 Oct 2019 17:30:32 +0200 Subject: [PATCH 2/3] back --- htdocs/societe/class/societe.class.php | 1 - 1 file changed, 1 deletion(-) diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index 49ac815cf36..c4c702bc73b 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -2367,7 +2367,6 @@ 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) From 0481e0b0d11ce689d7e8f938001c2ed0d5ab4fd9 Mon Sep 17 00:00:00 2001 From: altairis Date: Wed, 23 Oct 2019 17:31:26 +0200 Subject: [PATCH 3/3] sort contact list on lastname --- htdocs/societe/class/societe.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/htdocs/societe/class/societe.class.php b/htdocs/societe/class/societe.class.php index c999c9016f4..6419082bbd5 100644 --- a/htdocs/societe/class/societe.class.php +++ b/htdocs/societe/class/societe.class.php @@ -2378,6 +2378,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)