From afa0b91b1584c65311b04b46d47933a1e2a6926a Mon Sep 17 00:00:00 2001 From: fusionate Date: Fri, 27 Sep 2024 11:30:53 -0600 Subject: [PATCH] Contacts - Attachments: Fix download and image display. --- app/contacts/contact_attachment.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/contacts/contact_attachment.php b/app/contacts/contact_attachment.php index 6c707394d3..3701728cbf 100644 --- a/app/contacts/contact_attachment.php +++ b/app/contacts/contact_attachment.php @@ -42,9 +42,10 @@ $sql .= "where contact_attachment_uuid = :contact_attachment_uuid "; $sql .= "and (domain_uuid = :domain_uuid or domain_uuid is null) "; $parameters['contact_attachment_uuid'] = $contact_attachment_uuid; - $parameters['domain_uuid'] = $domain_uuid; + $parameters['domain_uuid'] = $_SESSION['domain_uuid']; $database = new database; $attachment = $database->select($sql, $parameters ?? null, 'row'); + // view_array($database->message); unset($sql, $parameters); $attachment_type = strtolower(pathinfo($attachment['attachment_filename'] ?? '', PATHINFO_EXTENSION)); @@ -78,4 +79,4 @@ } -?> +?> \ No newline at end of file