CDR Functiality Fix Extended Data Logic (#1897)

Raw data field was not being pulled so logic was broken, added derived
field raw_data_exists to sql statement, instead of pulling raw data with
query. Also added logic to hide the view extended data icon on the right
side of table.
This commit is contained in:
minotaur01
2016-09-03 12:03:35 -06:00
committed by FusionPBX
parent dd5f68fc53
commit 6b5e0fd9fd
2 changed files with 5 additions and 2 deletions
+1
View File
@@ -340,6 +340,7 @@
$sql .= "caller_id_number, ";
$sql .= "source_number, ";
$sql .= "destination_number, ";
$sql .= "(xml IS NOT NULL OR json IS NOT NULL) AS raw_data_exists, ";
if (is_array($_SESSION['cdr']['field'])) {
foreach ($_SESSION['cdr']['field'] as $field) {
$sql .= $field.", ";