From a5ec11d153cf4cf03412279b8f6e6f99618dfaac Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 17 Feb 2005 14:19:41 +0000 Subject: [PATCH] Modifie le chanegement de statut --- htdocs/telephonie/lignetel.class.php | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/htdocs/telephonie/lignetel.class.php b/htdocs/telephonie/lignetel.class.php index 11899b3f5f1..f7f82a6f345 100644 --- a/htdocs/telephonie/lignetel.class.php +++ b/htdocs/telephonie/lignetel.class.php @@ -318,6 +318,28 @@ class LigneTel { } } + /** + * Change le statut de la ligne en a commander + * + */ + function set_a_commander($user) + { + if ($this->statut == -1) + { + $this->set_statut( $user, 1, $datea, $commentaire); + } + } + /** + * Change le statut de la ligne en En attente + * + */ + function set_en_attente($user) + { + if ($this->statut == 1) + { + $this->set_statut($user, -1, $datea, $commentaire); + } + } /** * Change le statut de la ligne @@ -373,7 +395,6 @@ class LigneTel { $this->db->query($sql); } - $sql = "SELECT distinct statut, count(*) FROM ".MAIN_DB_PREFIX."telephonie_societe_ligne GROUP BY statut";