Skip to content
Snippets Groups Projects
Commit 8019499e authored by Henri Queneau's avatar Henri Queneau
Browse files

FEAT #3982 add action who force you to add an attachment for close your mail

parent 08ed0e77
No related merge requests found
......@@ -300,6 +300,12 @@ else if(empty($_POST['values']) || !isset($_POST['action_id']) || empty($_POST['
echo "{status : 2, confirm_content : '".addslashes(_ACTION_CONFIRM." ".functions::xssafe($label_action))."', validate : '"._VALIDATE."', cancel : '"._CANCEL."', label_action : '".addslashes(functions::xssafe($label_action))."', 'action_status' : '".functions::xssafe($status)."'}";
exit();
}
elseif( $_POST['req'] == 'first_request' && $confirm == false && $action_page == 'close_mail_with_attachment')
{
echo "{status : 3, form_content : '<div class=\"h2_title\">" . addslashes(_ADD_ATTACHMENT_OR_NOTE) .
"</div><p class=\"buttons\"><input type=\"button\" class=\"button\" value=\""._CANCEL."\" onclick=\"destroyModal(\'modal_" .$id_action . "\')\" id=\"submit\" name=\"submit\"></p>', height : '250px', width : '300px', 'mode_frm' : '', validate : 'OK', 'action_status' : '".functions::xssafe($status)."'}";
exit();
}
else
{
if($confirm == false)
......
......@@ -179,6 +179,17 @@ An action page is described in a ACTIONPAGE tag :
<COLLECTIONS>
<COLL_ID>letterbox_coll</COLL_ID>
</COLLECTIONS>
</ACTIONPAGE>
<ACTIONPAGE>
<ID>close_mail_with_attachment</ID>
<LABEL>_CLOSE_MAIL_WITH_ATTACHMENT</LABEL>
<NAME>close_mail_with_attachment</NAME>
<ORIGIN>apps</ORIGIN>
<MODULE></MODULE>
<FLAG_CREATE>false</FLAG_CREATE>
<COLLECTIONS>
<COLL_ID>letterbox_coll</COLL_ID>
</COLLECTIONS>
</ACTIONPAGE>
<!-- ACTIONS AJOUTEES PAR DIS -->
<ACTIONPAGE>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment