From bd413966e08264cfa2407f5edbd85bd9413ed639 Mon Sep 17 00:00:00 2001
From: Alex ORLUC <alex.orluc@maarch.org>
Date: Tue, 28 Mar 2017 12:51:56 +0200
Subject: [PATCH] add aihp attachment if

---
 modules/attachments/attachments_content.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/attachments/attachments_content.php b/modules/attachments/attachments_content.php
index 795c0eee17e..9ccc909e389 100644
--- a/modules/attachments/attachments_content.php
+++ b/modules/attachments/attachments_content.php
@@ -752,7 +752,7 @@ if (isset($_POST['add']) && $_POST['add']) {
                             $js .= "window.parent.top.location.href = 'index.php?page=view_baskets&module=basket&baskets=MyBasket&resid=".$_SESSION['doc_id']."&directLinkToAction';";
                     }
                     else {
-                        if($attachment_types == 'response_project' || $attachment_types == 'signed_response'){
+                        if($attachment_types == 'response_project' || $attachment_types == 'signed_response' || $attachment_types == 'aihp'){
                             $js .= 'loadSpecificTab(\'responses_iframe\',\''.$_SESSION['config']['businessappurl'].'index.php?display=true&module=attachments&page=frame_list_attachments&view_only=true&load&fromDetail=response&attach_type=response_project,outgoing_mail_signed,signed_response,outgoing_mail,aihp\');';
                         }else{
                             $js .= 'loadSpecificTab(\'attachments_iframe\',\''.$_SESSION['config']['businessappurl'].'index.php?display=true&page=show_attachments_details_tab&module=attachments&resId=100&collId=letterbox_coll&fromDetail=attachments&attach_type_exclude=response_project,signed_response,outgoing_mail_signed,converted_pdf,outgoing_mail,print_folder,aihp\');';
-- 
GitLab