From 5373e97b40da6edb11ec770457cbed3c134a0212 Mon Sep 17 00:00:00 2001 From: mhoogveld Date: Sat, 29 May 2021 04:56:25 +0200 Subject: [PATCH] Bugfixes (#5949) * Added missing parameter to send_email() * Preserving the call-center queue_record_template value when saving * Removed unused declarations using the commented-out $last_offered_call * Fix for redirecting to previous page after login, if set * Removed duplicate bugfix in /resources/login.php --- app/call_center_active/call_center_active_inc.php | 10 +--------- app/call_centers/call_center_queue_edit.php | 2 +- resources/login.php | 7 ++++++- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/app/call_center_active/call_center_active_inc.php b/app/call_center_active/call_center_active_inc.php index 77efa37057..7084c5ff45 100644 --- a/app/call_center_active/call_center_active_inc.php +++ b/app/call_center_active/call_center_active_inc.php @@ -219,14 +219,6 @@ $talk_time = $agent_row['talk_time']; $ready_time = $agent_row['ready_time']; - $last_offered_call_seconds = time() - $last_offered_call; - $last_offered_call_length_hour = floor($last_offered_call_seconds/3600); - $last_offered_call_length_min = floor($last_offered_call_seconds/60 - ($last_offered_call_length_hour * 60)); - $last_offered_call_length_sec = $last_offered_call_seconds - (($last_offered_call_length_hour * 3600) + ($last_offered_call_length_min * 60)); - $last_offered_call_length_min = sprintf("%02d", $last_offered_call_length_min); - $last_offered_call_length_sec = sprintf("%02d", $last_offered_call_length_sec); - $last_offered_call_length = $last_offered_call_length_hour.':'.$last_offered_call_length_min.':'.$last_offered_call_length_sec; - $last_status_change_seconds = time() - $last_status_change; $last_status_change_length_hour = floor($last_status_change_seconds/3600); $last_status_change_length_min = floor($last_status_change_seconds/60 - ($last_status_change_length_hour * 60)); @@ -394,4 +386,4 @@ } -?> \ No newline at end of file +?> diff --git a/app/call_centers/call_center_queue_edit.php b/app/call_centers/call_center_queue_edit.php index f78ef8f5fb..e01e7968f0 100644 --- a/app/call_centers/call_center_queue_edit.php +++ b/app/call_centers/call_center_queue_edit.php @@ -877,7 +877,7 @@ $record_template = $_SESSION['switch']['recordings']['dir']."/".$_SESSION['domain_name']."/archive/\${strftime(%Y)}/\${strftime(%b)}/\${strftime(%d)}/\${uuid}.\${record_ext}"; echo "