From 7f527aba0763840e4a7962062705d3d5601abc4c Mon Sep 17 00:00:00 2001 From: FusionPBX Date: Fri, 15 Nov 2024 14:32:45 -0700 Subject: [PATCH] Fix the sql query --- app/destinations/resources/classes/destinations.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/destinations/resources/classes/destinations.php b/app/destinations/resources/classes/destinations.php index 60ba3b3084..2694665e47 100644 --- a/app/destinations/resources/classes/destinations.php +++ b/app/destinations/resources/classes/destinations.php @@ -1239,7 +1239,7 @@ if (!class_exists('destinations')) { } $sql .= " and direction = 'inbound' \n"; $sql .= " and caller_destination is not null \n"; - $sql .= " leg = 'a' \n"; + $sql .= " and leg = 'a' \n"; $sql .= $sql_date_range ?? ''; $sql .= ") as c \n";