diff --git a/app/call_centers/call_center_agent_status.php b/app/call_centers/call_center_agent_status.php
index ccebf8822c..5443987868 100644
--- a/app/call_centers/call_center_agent_status.php
+++ b/app/call_centers/call_center_agent_status.php
@@ -135,7 +135,7 @@
}
//remove rows from the http post array where the status has not changed
- if (count($_POST['agents']) > 0) {
+ if (count($_POST['agents']) > 0 && !$per_queue_login) {
foreach($_POST['agents'] as $key => $row) {
foreach($agents as $k => $field) {
if ($field['agent_name'] === $row['agent_name'] && $field['agent_status'] === $row['agent_status']) {
@@ -302,19 +302,22 @@
echo "