From 2555324af272415d672ad28a061ba43ca16a1496 Mon Sep 17 00:00:00 2001 From: Alex ORLUC <alex.orluc@maarch.org> Date: Tue, 28 Mar 2017 12:35:59 +0200 Subject: [PATCH] add aihp attachments --- modules/attachments/load_toolbar_attachments.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/attachments/load_toolbar_attachments.php b/modules/attachments/load_toolbar_attachments.php index d4207fe8edb..cf60b0f8301 100644 --- a/modules/attachments/load_toolbar_attachments.php +++ b/modules/attachments/load_toolbar_attachments.php @@ -11,11 +11,11 @@ if($_SESSION['req'] == 'details'){ if(isset($_REQUEST['responses'])){ $stmt = $db->query("SELECT res_id, creation_date, title, format FROM " . $_SESSION['tablename']['attach_res_attachments'] - . " WHERE res_id_master = ? and coll_id = ? and status <> 'DEL' and (attachment_type = 'response_project' or attachment_type = 'outgoing_mail_signed' or attachment_type = 'outgoing_mail' or attachment_type = 'signed_response') and (status <> 'TMP' or (typist = ? and status = 'TMP'))", array($res_id, $coll_id, $_SESSION['user']['UserId'])); + . " WHERE res_id_master = ? and coll_id = ? and status <> 'DEL' and (attachment_type = 'response_project' or attachment_type = 'outgoing_mail_signed' or attachment_type = 'outgoing_mail' or attachment_type = 'signed_response' or attachment_type = 'aihp') and (status <> 'TMP' or (typist = ? and status = 'TMP'))", array($res_id, $coll_id, $_SESSION['user']['UserId'])); }else{ $stmt = $db->query("SELECT res_id, creation_date, title, format FROM " . $_SESSION['tablename']['attach_res_attachments'] - . " WHERE res_id_master = ? and coll_id = ? and status <> 'DEL' and attachment_type NOT IN ('response_project','signed_response','outgoing_mail_signed','converted_pdf','outgoing_mail','print_folder') and (status <> 'TMP' or (typist = ? and status = 'TMP'))", array($res_id, $coll_id, $_SESSION['user']['UserId'])); + . " WHERE res_id_master = ? and coll_id = ? and status <> 'DEL' and attachment_type NOT IN ('response_project','signed_response','outgoing_mail_signed','converted_pdf','outgoing_mail','print_folder','aihp') and (status <> 'TMP' or (typist = ? and status = 'TMP'))", array($res_id, $coll_id, $_SESSION['user']['UserId'])); } }else{ -- GitLab