From ef116cedd925557f28e2dceb0f403fb4d52f6d9c Mon Sep 17 00:00:00 2001 From: konradSC Date: Fri, 24 Apr 2020 12:07:35 -0400 Subject: [PATCH] Specify table for Accountcode Search (#5243) I had to add "c." in order for accountcode CDR searches to work under Advanced CDR Search. I suspect there may be more that require this, but I haven't checked every field under advanced search. --- app/xml_cdr/xml_cdr_inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/xml_cdr/xml_cdr_inc.php b/app/xml_cdr/xml_cdr_inc.php index e9286fe782..1a444ebcba 100644 --- a/app/xml_cdr/xml_cdr_inc.php +++ b/app/xml_cdr/xml_cdr_inc.php @@ -457,7 +457,7 @@ $parameters['bleg_uuid'] = $bleg_uuid; } if (strlen($accountcode) > 0) { - $sql .= "and accountcode = :accountcode "; + $sql .= "and c.accountcode = :accountcode "; $parameters['accountcode'] = $accountcode; } if (strlen($read_codec) > 0) { @@ -537,4 +537,4 @@ list($paging_controls, $rows_per_page) = paging($num_rows, $param, $rows_per_page, false, $result_count); //bottom } -?> \ No newline at end of file +?>