Error en stack 210 al exportar un proceso con templates e importarlo de nuevo
This commit is contained in:
dheeyi
2016-05-03 10:48:22 -04:00
parent f14115f9f0
commit b69777a39b
3 changed files with 5 additions and 4 deletions

View File

@@ -3723,6 +3723,7 @@ class Processes
$rsCriteria->setFetchmode(ResultSet::FETCHMODE_ASSOC);
$rsCriteria->next();
while ($aRow = $rsCriteria->getRow()) {
$aRow['PRF_PATH'] = str_replace("\\", "/", $aRow['PRF_PATH']);
$arrayFilesManager[] = $aRow;
$rsCriteria->next();
}

View File

@@ -60,10 +60,10 @@ class FileHandler
if ($target == "PUBLIC" && in_array($filename, $arrayPublicFileToExclude)) {
continue;
}
$filePath = $prj_uid . PATH_SEP . $filename;
$workflowFile[$target][] = array(
"filename" => $filename,
"filepath" => $prj_uid . PATH_SEP . $filename,
"filepath" => str_replace("\\", "/", $filePath),
"file_content" => file_get_contents($templatesFile)
);
}

View File

@@ -1230,10 +1230,10 @@ class Workflow extends Handler
if ($target == "PUBLIC" && in_array($filename, $arrayPublicFileToExclude)) {
continue;
}
$filePath = $processUid . PATH_SEP . $filename;
$workflowFile[$target][] = array(
"filename" => $filename,
"filepath" => $processUid . PATH_SEP . $filename,
"filepath" => str_replace("\\", "/", $filePath),
"file_content" => file_get_contents($templatesFile)
);
}