From c923293050a64209b7211e53bf18cb38b2585a51 Mon Sep 17 00:00:00 2001 From: ednt Date: Fri, 17 Mar 2023 05:14:01 +0100 Subject: [PATCH] Update email_logs.php (#6578) Due to a change of table field name the SQL generates an postgres error --- app/email_logs/email_logs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/email_logs/email_logs.php b/app/email_logs/email_logs.php index cf23648064..91b58aa24f 100644 --- a/app/email_logs/email_logs.php +++ b/app/email_logs/email_logs.php @@ -131,7 +131,7 @@ $sql = "select caller_id_name, caller_id_number, destination_number "; $sql .= "from v_xml_cdr "; $sql .= "where domain_uuid = :domain_uuid "; - $sql .= "and uuid = :uuid "; + $sql .= "and xml_cdr_uuid = :uuid "; $parameters['domain_uuid'] = $domain_uuid; $parameters['uuid'] = $row['call_uuid']; $database = new database;