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:
parent
587d164f9d
commit
ef116cedd9
|
|
@ -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) {
|
||||||
|
|
@ -537,4 +537,4 @@
|
||||||
list($paging_controls, $rows_per_page) = paging($num_rows, $param, $rows_per_page, false, $result_count); //bottom
|
list($paging_controls, $rows_per_page) = paging($num_rows, $param, $rows_per_page, false, $result_count); //bottom
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue