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:
@@ -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) {
|
||||
|
||||
@@ -44,8 +44,8 @@ class Xpdl extends processes
|
||||
* @param string $pmFilename
|
||||
* @return void
|
||||
*/
|
||||
function createProcessFromDataXpdl ($oData,$tasks) {
|
||||
if ( !isset($oData->process['PRO_UID']) || trim($oData->process['PRO_UID']) == '' )
|
||||
function createProcessFromDataXpdl ($oData,$tasks) {
|
||||
if ( !isset($oData->process['PRO_UID']) || trim($oData->process['PRO_UID']) == '' )
|
||||
$oData->process['PRO_UID'] = G::generateUniqueID() ;
|
||||
|
||||
$this->removeProcessRows ($oData->process['PRO_UID'] );
|
||||
@@ -321,7 +321,7 @@ class Xpdl extends processes
|
||||
if ( !is_dir($path) ) {
|
||||
G::verifyPath($path, true);
|
||||
}
|
||||
$proTitle = (substr(G::inflect($oData->process['PRO_TITLE']), 0, 30));
|
||||
$proTitle = (substr(G::inflect($oData->process['PRO_TITLE']), 0, 245));
|
||||
$proTitle = preg_replace("/[^A-Za-z0-9_]/", "", $proTitle);
|
||||
$index = '';
|
||||
$lastIndex = '';
|
||||
@@ -727,7 +727,7 @@ class Xpdl extends processes
|
||||
$passwd = $arrayFrom['MESS_PASSWORD'];
|
||||
$passwdDec = G::decrypt($passwd,'EMAILENCRYPT');
|
||||
if (strpos( $passwdDec, 'hash:' ) !== false) {
|
||||
list($hash, $pass) = explode(":", $passwdDec);
|
||||
list($hash, $pass) = explode(":", $passwdDec);
|
||||
$passwd = $pass;
|
||||
}
|
||||
$from = $arrayFrom['MESS_ACCOUNT'];
|
||||
|
||||
@@ -370,7 +370,7 @@ var processmap=function(){
|
||||
this.tmp.exportProcessPanel = panel =new leimnud.module.panel();
|
||||
panel.options={
|
||||
limit :true,
|
||||
size :{w:440,h:230},
|
||||
size :{w:600,h:230},
|
||||
position:{x:50,y:50,center:true},
|
||||
title :G_STRINGS.ID_PROCESSMAP_EXPORT_PROCESS+": "+this.data.db.title.label,
|
||||
theme :this.options.theme,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<dynaForm name="processes_Export" type="xmlform" width="400px" labelWidth="100px">
|
||||
<dynaForm name="processes_Export" type="xmlform" width="580px" labelWidth="130px">
|
||||
|
||||
<TITLE type="title">
|
||||
<en>processes Info</en>
|
||||
@@ -42,4 +42,4 @@ var nextStep = function(oForm)
|
||||
};
|
||||
]]></JS>
|
||||
|
||||
</dynaForm>
|
||||
</dynaForm>
|
||||
Reference in New Issue
Block a user