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.
This commit is contained in:
konradSC
2020-04-24 10:07:35 -06:00
committed by GitHub
parent 587d164f9d
commit ef116cedd9
+1 -1
View File
@@ -457,7 +457,7 @@
$parameters['bleg_uuid'] = $bleg_uuid; $parameters['bleg_uuid'] = $bleg_uuid;
} }
if (strlen($accountcode) > 0) { if (strlen($accountcode) > 0) {
$sql .= "and accountcode = :accountcode "; $sql .= "and c.accountcode = :accountcode ";
$parameters['accountcode'] = $accountcode; $parameters['accountcode'] = $accountcode;
} }
if (strlen($read_codec) > 0) { if (strlen($read_codec) > 0) {