From abb4727bbf3a6008749cb33d90feb78bd3222055 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 17 Feb 2005 14:19:24 +0000 Subject: [PATCH] Modif le process de commande --- htdocs/telephonie/ligne/commande/liste.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/htdocs/telephonie/ligne/commande/liste.php b/htdocs/telephonie/ligne/commande/liste.php index 48831a0f421..74958e5d675 100644 --- a/htdocs/telephonie/ligne/commande/liste.php +++ b/htdocs/telephonie/ligne/commande/liste.php @@ -29,8 +29,17 @@ $sortfield = $_GET["sortfield"]; if ($_GET["action"] == "commande" && $user->rights->telephonie->ligne_commander) { $ltel = new LigneTel($db); - $ltel->id = $_GET["lid"]; - $ltel->set_statut($user, $_GET["statut"]); + $ltel->fetch_by_id($_GET["lid"]); + + if ($_GET["statut"] == 1) + { + $ltel->set_a_commander($user); + } + + if ($_GET["statut"] == -1) + { + $ltel->set_en_attente($user); + } Header("Location: liste.php"); }