BUG 12768 Trigger after InputDocument step executes before input document is saved SOLVED
- Trigger after InputDocument step executes before input document is saved - Adjustment in the app_data of input documents.
This commit is contained in:
@@ -93,6 +93,29 @@ if ($_SESSION["TRIGGER_DEBUG"]["NUM_TRIGGERS"] > 0) {
|
|||||||
$_SESSION["TRIGGER_DEBUG"]["TRIGGERS_VALUES"] = $arrayTrigger;
|
$_SESSION["TRIGGER_DEBUG"]["TRIGGERS_VALUES"] = $arrayTrigger;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
//Add Input Document
|
||||||
|
if (isset($_FILES) && isset($_FILES["form"]) && count($_FILES["form"]) > 0) {
|
||||||
|
$appDocUid = $case->addInputDocument(
|
||||||
|
$inputDocumentUid,
|
||||||
|
$appDocUid,
|
||||||
|
$docVersion,
|
||||||
|
$appDocType,
|
||||||
|
$appDocComment,
|
||||||
|
$actionType,
|
||||||
|
$_SESSION["APPLICATION"],
|
||||||
|
$_SESSION["INDEX"],
|
||||||
|
$_SESSION["TASK"],
|
||||||
|
$_SESSION["USER_LOGGED"],
|
||||||
|
"xmlform",
|
||||||
|
$_FILES["form"]["name"]["APP_DOC_FILENAME"],
|
||||||
|
$_FILES["form"]["error"]["APP_DOC_FILENAME"],
|
||||||
|
$_FILES["form"]["tmp_name"]["APP_DOC_FILENAME"]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
if ($_SESSION["TRIGGER_DEBUG"]["NUM_TRIGGERS"] > 0) {
|
if ($_SESSION["TRIGGER_DEBUG"]["NUM_TRIGGERS"] > 0) {
|
||||||
//Trigger - Execute after - Start
|
//Trigger - Execute after - Start
|
||||||
$arrayField["APP_DATA"] = $case->executeTriggers(
|
$arrayField["APP_DATA"] = $case->executeTriggers(
|
||||||
@@ -115,26 +138,6 @@ $arrayData["TAS_UID"] = $_SESSION["TASK"];
|
|||||||
|
|
||||||
$case->updateCase($_SESSION["APPLICATION"], $arrayData);
|
$case->updateCase($_SESSION["APPLICATION"], $arrayData);
|
||||||
|
|
||||||
//Add Input Document
|
|
||||||
if (isset($_FILES) && isset($_FILES["form"]) && count($_FILES["form"]) > 0) {
|
|
||||||
$appDocUid = $case->addInputDocument(
|
|
||||||
$inputDocumentUid,
|
|
||||||
$appDocUid,
|
|
||||||
$docVersion,
|
|
||||||
$appDocType,
|
|
||||||
$appDocComment,
|
|
||||||
$actionType,
|
|
||||||
$_SESSION["APPLICATION"],
|
|
||||||
$_SESSION["INDEX"],
|
|
||||||
$_SESSION["TASK"],
|
|
||||||
$_SESSION["USER_LOGGED"],
|
|
||||||
"xmlform",
|
|
||||||
$_FILES["form"]["name"]["APP_DOC_FILENAME"],
|
|
||||||
$_FILES["form"]["error"]["APP_DOC_FILENAME"],
|
|
||||||
$_FILES["form"]["tmp_name"]["APP_DOC_FILENAME"]
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
//go to the next step
|
//go to the next step
|
||||||
//if (!isset($_POST['form']['MORE'])) {
|
//if (!isset($_POST['form']['MORE'])) {
|
||||||
if (false) {
|
if (false) {
|
||||||
|
|||||||
Reference in New Issue
Block a user