mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Fixed bug: Unable to un-assign cases when cases in case queue and extensions set to automatically unassign
This commit is contained in:
@@ -63,7 +63,7 @@ if (ALLOW_OPERATOR_EXTENSION_SELECT && VOIP_ENABLED)
|
|||||||
//unassign extension
|
//unassign extension
|
||||||
$operator_id = get_operator_id();
|
$operator_id = get_operator_id();
|
||||||
|
|
||||||
if (get_case_id($operator_id) == false && is_voip_enabled($operator_id))
|
if (get_case_id($operator_id,false) == false && is_voip_enabled($operator_id))
|
||||||
{
|
{
|
||||||
$sql = "UPDATE `extension`
|
$sql = "UPDATE `extension`
|
||||||
SET current_operator_id = NULL
|
SET current_operator_id = NULL
|
||||||
|
|||||||
@@ -590,7 +590,7 @@ function get_case_id($operator_id, $create = false)
|
|||||||
|
|
||||||
$sq = $db->GetRow($sql);
|
$sq = $db->GetRow($sql);
|
||||||
|
|
||||||
if (isset($rnc['next_case_id']) && !empty($rnc['next_case_id']))
|
if ($create && isset($rnc['next_case_id']) && !empty($rnc['next_case_id']))
|
||||||
{
|
{
|
||||||
$case_id = $rnc['next_case_id'];
|
$case_id = $rnc['next_case_id'];
|
||||||
|
|
||||||
@@ -617,7 +617,7 @@ function get_case_id($operator_id, $create = false)
|
|||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (isset($sq['case_id']) && !empty($sq['case_id']))
|
else if ($create && isset($sq['case_id']) && !empty($sq['case_id']))
|
||||||
{
|
{
|
||||||
$case_id = $sq['case_id'];
|
$case_id = $sq['case_id'];
|
||||||
$case_queue_id = $sq['case_queue_id'];
|
$case_queue_id = $sq['case_queue_id'];
|
||||||
|
|||||||
Reference in New Issue
Block a user