Merged in mcuiza/processmaker/PM-1310 (pull request #1522)

PM-1310 (Al copiar una carpeta que tiene contenido se despliega un warning por cada archivo)
This commit is contained in:
Julio Cesar Laura Avendaño
2015-02-23 13:11:37 -04:00

View File

@@ -1409,6 +1409,10 @@ function copyMoveExecuteTree($uidFolder, $newUidFolder)
//Copy file
$arrayPathFromFile = G::getPathFromFileUID($docInfo["APP_UID"], $docUid);
$newFile = $arrayPathFromFile[0] . PATH_SEP . $arrayPathFromFile[1] . "_" . $docInfo["DOC_VERSION"] . "." . $extension;
if(!file_exists($path . $arrayPathFromFile[0])) {
mkdir( $path . $arrayPathFromFile[0], 0777, true );
}
copy($path . $originFile, $path . $newFile);
} else {