From 743f35e1d7a98870af036c5d85ec6691f2c3dcc2 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Wed, 1 Jan 2025 18:40:52 +0100 Subject: [PATCH] Fix FollowUp attached files --- include/template/follow_up-display.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/template/follow_up-display.php b/include/template/follow_up-display.php index e651f8918..7dba0376f 100644 --- a/include/template/follow_up-display.php +++ b/include/template/follow_up-display.php @@ -384,10 +384,13 @@ function small(p_id_textarea){ echo $description->input(); echo ''; } + $aFile=[]; + if ( count($acomment) > 0 ) { + // link to files to download $aFile=$this->db->get_array('select d_id,d_filename,d_description,d_mimetype from action_comment_document - join document on (d_id=document_id) where ag_id=$1' + join document on (d_id=document_id) where action_gestion_comment_id=$1' , array($acomment[0]['agc_id'])); if ( ! empty ($aFile)) { echo '
'; @@ -403,6 +406,7 @@ function small(p_id_textarea){ } echo '
'; } + } //---------------------------------- Comment -----------------------------------------------------------------------