Modif le process de commande
This commit is contained in:
parent
01c1770d8f
commit
abb4727bbf
@ -29,8 +29,17 @@ $sortfield = $_GET["sortfield"];
|
|||||||
if ($_GET["action"] == "commande" && $user->rights->telephonie->ligne_commander)
|
if ($_GET["action"] == "commande" && $user->rights->telephonie->ligne_commander)
|
||||||
{
|
{
|
||||||
$ltel = new LigneTel($db);
|
$ltel = new LigneTel($db);
|
||||||
$ltel->id = $_GET["lid"];
|
$ltel->fetch_by_id($_GET["lid"]);
|
||||||
$ltel->set_statut($user, $_GET["statut"]);
|
|
||||||
|
if ($_GET["statut"] == 1)
|
||||||
|
{
|
||||||
|
$ltel->set_a_commander($user);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($_GET["statut"] == -1)
|
||||||
|
{
|
||||||
|
$ltel->set_en_attente($user);
|
||||||
|
}
|
||||||
|
|
||||||
Header("Location: liste.php");
|
Header("Location: liste.php");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user