From ed7ef0deeff304f94fbe4bddcc5f425e5b9379a9 Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Fri, 4 Aug 2017 13:56:42 +1000 Subject: [PATCH] Only display missing appointments where not assigned to an operator --- admin/displayappointments.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/admin/displayappointments.php b/admin/displayappointments.php index 417e83d7..f4102007 100644 --- a/admin/displayappointments.php +++ b/admin/displayappointments.php @@ -331,7 +331,8 @@ else { WHERE q.enabled=1 AND si.enabled=1 AND a.end < CONVERT_TZ(NOW(),'System','UTC') AND a.completed_call_id IS NULL AND (qsq.quota_reached IS NULL OR qsq.quota_reached != 1 ) AND (qsqr.quota_reached IS NULL OR qsqr.quota_reached != 1) - AND co.operator_id = '$operator_id' + AND co.operator_id = '$operator_id' + AND c.current_operator_id IS NULL GROUP BY a.appointment_id ORDER BY a.start ASC";