Bug Fixed: 6047. When a Input Document was used as dynaform field (no step) then the file is always deleted in precense of a plugin" workflow/engine/methods/cases/cases_SaveData.php
This commit is contained in:
@@ -209,12 +209,14 @@ if (isset ( $_FILES ['form'] )) {
|
||||
$oPluginRegistry = & PMPluginRegistry::getSingleton ();
|
||||
if ($oPluginRegistry->existsTrigger ( PM_UPLOAD_DOCUMENT ) && class_exists ( 'uploadDocumentData' )) {
|
||||
$documentData = new uploadDocumentData ( $_SESSION ['APPLICATION'], $_SESSION ['USER_LOGGED'], $sPathName . $sFileName, $aFields ['APP_DOC_FILENAME'], $sAppDocUid );
|
||||
$oPluginRegistry->executeTriggers ( PM_UPLOAD_DOCUMENT, $documentData );
|
||||
$uploadReturn=$oPluginRegistry->executeTriggers ( PM_UPLOAD_DOCUMENT, $documentData );
|
||||
if($uploadReturn){
|
||||
unlink ( $sPathName . $sFileName );
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//go to the next step
|
||||
$aNextStep = $oCase->getNextStep ( $_SESSION ['PROCESS'], $_SESSION ['APPLICATION'], $_SESSION ['INDEX'], $_SESSION ['STEP_POSITION'] );
|
||||
|
||||
Reference in New Issue
Block a user