From 21f5db6fdcf00d4fa5ebe0aa72b705e5d7739acc Mon Sep 17 00:00:00 2001 From: Nicolas Couture <couture@docimsol.com> Date: Mon, 11 May 2015 14:49:10 +0000 Subject: [PATCH] =?UTF-8?q?FEAT=20#2285=20Action=20conditionnelle.=20Ajout?= =?UTF-8?q?=20d'une=20valeur=20de=20retour=20"newResultId"=20au=20niveau?= =?UTF-8?q?=20de=20l'action=20afin=20de=20mettre=20=C3=A0=20jour=20seuleme?= =?UTF-8?q?nt=20les=20documents=20r=C3=A9pondant=20=C3=A0=20un=20crit?= =?UTF-8?q?=C3=A8re=20(parmi=20tous=20les=20documents=20s=C3=A9lectionn?= =?UTF-8?q?=C3=A9s=20=C3=A0=20la=20base)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/trunk/core/manage_action.php | 11 +++++++++++ core/trunk/core/xml/actions_pages.xml | 11 +++++++++++ 2 files changed, 22 insertions(+) diff --git a/core/trunk/core/manage_action.php b/core/trunk/core/manage_action.php index 49c18bcc4d3..78d611014e0 100644 --- a/core/trunk/core/manage_action.php +++ b/core/trunk/core/manage_action.php @@ -343,6 +343,17 @@ else { $comp .= ", table : '".$res_action['table_dest']."'"; } + + + if(isset($res_action['newResultId']) && !empty($res_action['newResultId'])) + { + $comp .= ", newResultId : '".$res_action['newResultId']."'"; + } + if(isset($res_action['action_status']) && !empty($res_action['action_status'])) + { + $comp .= ", action_status : '".$res_action['action_status']."'"; + } + $_SESSION['action_error'] = _ACTION_DONE.' : '.$label_action; echo "{status : 0, error_txt : '".addslashes($_SESSION['action_error'])."'".$comp.", result_id : '".$res_action['result']."'}"; } diff --git a/core/trunk/core/xml/actions_pages.xml b/core/trunk/core/xml/actions_pages.xml index 0ad0fe92296..4e65216e805 100644 --- a/core/trunk/core/xml/actions_pages.xml +++ b/core/trunk/core/xml/actions_pages.xml @@ -369,4 +369,15 @@ An action page is described in a ACTIONPAGE tag : <COLL_ID>letterbox_coll</COLL_ID> </COLLECTIONS> </ACTIONPAGE> + <ACTIONPAGE> + <ID>send_signed_docs</ID> + <LABEL>_SEND_SIGNED_DOCS</LABEL> + <NAME>send_signed_docs</NAME> + <ORIGIN>module</ORIGIN> + <MODULE>visa</MODULE> + <FLAG_CREATE>false</FLAG_CREATE> + <COLLECTIONS> + <COLL_ID>letterbox_coll</COLL_ID> + </COLLECTIONS> + </ACTIONPAGE> </ROOT> -- GitLab