From f90761967987e409a7bda0c3115b6d2f67267551 Mon Sep 17 00:00:00 2001 From: agree <37550360+greenbea@users.noreply.github.com> Date: Sat, 25 Jun 2022 14:04:23 -0400 Subject: [PATCH] [xml_cdr] cdr statistics fix LOSE_RACE (#6432) --- app/xml_cdr/xml_cdr_statistics_inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/xml_cdr/xml_cdr_statistics_inc.php b/app/xml_cdr/xml_cdr_statistics_inc.php index a20d3af0fd..f3f8529244 100644 --- a/app/xml_cdr/xml_cdr_statistics_inc.php +++ b/app/xml_cdr/xml_cdr_statistics_inc.php @@ -281,12 +281,12 @@ $sql_where_ands[] = "leg = :leg"; $parameters['leg'] = $leg; } - //Exclude enterprise ring group legs + //Exclude enterprise ring group and follow me originated legs if (!permission_exists('xml_cdr_enterprise_leg')) { $sql_where_ands[] .= "originating_leg_uuid IS NULL"; } //If you can't see lose_race, don't run stats on it - elseif (!permission_exists('xml_cdr_lose_race')) { + if (!permission_exists('xml_cdr_lose_race')) { $sql_where_ands[] = "hangup_cause != 'LOSE_RACE'"; }