2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Added featue for allowing operators to choose their own extension if not assigned one already

This commit is contained in:
Adam Zammit
2013-11-26 11:49:38 +11:00
parent 5d812fa968
commit 6d81384378
4 changed files with 155 additions and 0 deletions

View File

@@ -51,6 +51,27 @@ if (isset($_GET['auto']))
print "<h1>" . T_("Work has ended. That is it") . "</h1>";
if (ALLOW_OPERATOR_EXTENSION_SELECT && VOIP_ENABLED)
{
//unassign extension
include_once("functions/functions.operator.php");
$operator_id = get_operator_id();
if (get_case_id($operator_id) == false && is_voip_enabled($operator_id))
{
$sql = "UPDATE `extension`
SET current_operator_id = NULL
WHERE current_operator_id = $operator_id";
$rs = $db->Execute($sql);
if ($rs)
{
print "<p>" . T_("You have been unassigned from your extension") ."</p>";
}
}
}
print "<p><a href='index.php'>" . T_("Go back to work") . "</a></p>";
xhtml_foot();