External_Registration> No esta derivando el archivo adjunto en File
This commit is contained in:
dheeyi william
2016-09-22 12:21:01 -04:00
parent 91d5605365
commit b77cffd129

View File

@@ -3675,7 +3675,7 @@ class Cases
* @param string $fileSize File size ($_FILES["form"]["size"]["APP_DOC_FILENAME"] or 0) * @param string $fileSize File size ($_FILES["form"]["size"]["APP_DOC_FILENAME"] or 0)
* @return string Return application document ID * @return string Return application document ID
*/ */
public function addInputDocument($inputDocumentUid, $appDocUid, $docVersion, $appDocType, $appDocComment, $inputDocumentAction, $applicationUid, $delIndex, $taskUid, $userUid, $option, $file, $fileError = 0, $fileTmpName = null, $fileSize = 0) public function addInputDocument($inputDocumentUid, $appDocUid, $docVersion, $appDocType, $appDocComment, $inputDocumentAction, $applicationUid, $delIndex, $taskUid, $userUid, $option, $file, $fileError = 0, $fileTmpName = null, $fileSize = 0, $isInputDocumentOfGrid = false)
{ {
$appDocFileName = null; $appDocFileName = null;
$sw = 0; $sw = 0;
@@ -3701,6 +3701,10 @@ class Cases
return null; return null;
} }
$folderId = '';
$tags = '';
if (!$isInputDocumentOfGrid) {
//Info //Info
$inputDocument = new InputDocument(); $inputDocument = new InputDocument();
$arrayInputDocumentData = $inputDocument->load($inputDocumentUid); $arrayInputDocumentData = $inputDocument->load($inputDocumentUid);
@@ -3716,12 +3720,12 @@ class Cases
throw new Exception(G::LoadTranslation("ID_SIZE_VERY_LARGE_PERMITTED")); throw new Exception(G::LoadTranslation("ID_SIZE_VERY_LARGE_PERMITTED"));
} }
} }
//Get the Custom Folder ID (create if necessary) //Get the Custom Folder ID (create if necessary)
$appFolder = new AppFolder(); $appFolder = new AppFolder();
$folderId = $appFolder->createFromPath($arrayInputDocumentData["INP_DOC_DESTINATION_PATH"], $applicationUid); $folderId = $appFolder->createFromPath($arrayInputDocumentData["INP_DOC_DESTINATION_PATH"], $applicationUid);
$tags = $appFolder->parseTags($arrayInputDocumentData["INP_DOC_TAGS"], $applicationUid); $tags = $appFolder->parseTags($arrayInputDocumentData["INP_DOC_TAGS"], $applicationUid);
}
$appDocument = new AppDocument(); $appDocument = new AppDocument();
$arrayField = array(); $arrayField = array();