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 '