Merged in gproly/processmaker/HOR-846 (pull request #4159)

HOR-846
This commit is contained in:
Julio Cesar Laura Avendaño
2016-04-27 19:18:40 -04:00
2 changed files with 13 additions and 4 deletions

View File

@@ -396,6 +396,11 @@ try {
G::uploadFile( $arrayFileTmpName[$i], $sPathName, $sFileName );
//set variable for APP_DOC_UID
$aData["APP_DATA"][$oAppDocument->getAppDocFieldname()] = G::json_encode([$oAppDocument->getAppDocUid()]);
$aData["APP_DATA"][$oAppDocument->getAppDocFieldname() . "_label"] = G::json_encode([$oAppDocument->getAppDocFilename()]);
$oCase->updateCase($_SESSION['APPLICATION'], $aData);
//Plugin Hook PM_UPLOAD_DOCUMENT for upload document
$oPluginRegistry = &PMPluginRegistry::getSingleton();