Merge pull request #1161 from moteus/cdr_detail_showall

Fix. Show CDR details when set `showall`
This commit is contained in:
FusionPBX 2015-09-21 09:13:43 -06:00
commit e25a1409ff
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ else {
//get the cdr string from the database
$sql = "select * from v_xml_cdr ";
if ($_GET['showall'] && permission_exists('xml_cdr_all')) {
if ($sql_where) { $sql .= "where uuid = '$uuid' "; }
$sql .= "where uuid = '$uuid' ";
} else {
$sql .= "where uuid = '$uuid' and domain_uuid = '$domain_uuid' ";
}