BUG 8659 nombre de archivo al exportar versionado de exportacion SOLVED

- Se estaba truncando el nombre del proceso a 30 caracteres
- Ahora se esta truncando a 245 caracteres, el maximo comun para nombres de archivo es de 255,
  los 10 caracteres restantes para la extension y la version
- Se agrando un poco el panel donde muestra los links de los archivos .pm y .xpdl
This commit is contained in:
Julio Cesar Laura
2012-03-07 19:08:47 -04:00
parent 246cda388a
commit 8e5b5f2c6b
4 changed files with 11 additions and 11 deletions

View File

@@ -2376,7 +2376,7 @@ class Processes {
if ( !is_dir($path) ) {
G::verifyPath($path, true);
}
$proTitle = (substr(G::inflect($data->process['PRO_TITLE']), 0, 30));
$proTitle = (substr(G::inflect($data->process['PRO_TITLE']), 0, 245));
$proTitle = preg_replace("/[^A-Za-z0-9_]/", "", $proTitle);
@@ -3207,7 +3207,7 @@ class Processes {
// create the process
$this->createProcessRow($oData->process);
$this->createTaskRows($oData->tasks);
//it was commented becuase it seems to be working fine
//$this->createEventRows(isset($oData->event) ? $oData->event : array());
@@ -3472,7 +3472,7 @@ class Processes {
case 'mail': case 'email':
$basePath = PATH_DATA_MAILTEMPLATES;
break;
case 'public':
$basePath = PATH_DATA_PUBLIC;
break;
@@ -3489,7 +3489,7 @@ class Processes {
if (!file_exists($dir . 'alert_message.html')) {
@copy(PATH_TPL . 'mails' . PATH_SEP . 'alert_message.html', $dir . 'alert_message.html');
}
$files = glob($dir . '*.*');
foreach ($files as $file) {