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 12:07:35 -04:00
committed by GitHub
parent 587d164f9d
commit ef116cedd9

View File

@@ -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
}
?>
?>