From e894639c2d45f564108dbb4a2d26a765933e5c1a Mon Sep 17 00:00:00 2001 From: marcelo Date: Tue, 9 Apr 2013 12:44:09 -0400 Subject: [PATCH] BUG 11135 "Nombre de procesos no aceptan ":" a pesar de que PM crea copias con ":" en el nombre" SOLVED -Nombre de proceso no acepta ":" a pesar de que PM crea copias con ":" en el nombre. PM crea copias con el nombre "Copy of - BUG 7490 multiplicacion con grillas - Mar 28, 10:32", pero despues de editar las propiedades del proceso no es posible guradas los cambios ya que muestra el mensaje "Invalid process name, please just use alphanumeric characters." -Problema resuelto, El usuario ya puede editar el nombre del proceso con el tipo de nombre "Copy of - BUG 7490 multiplicacion con grillas - Mar 28, 10:32" sin ningun problema --- workflow/engine/xmlform/processes/processes_Edit.xml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/workflow/engine/xmlform/processes/processes_Edit.xml b/workflow/engine/xmlform/processes/processes_Edit.xml index 14d71d3cc..5a9380cf0 100755 --- a/workflow/engine/xmlform/processes/processes_Edit.xml +++ b/workflow/engine/xmlform/processes/processes_Edit.xml @@ -115,7 +115,6 @@ WHERE var validateNameProcess = true; var naProcess = new input(getField('PRO_TITLE')); naProcess.passed(); - var verifyProcessInformation = function(oForm) { if (validateNameProcess) { var oAux; @@ -126,8 +125,8 @@ var verifyProcessInformation = function(oForm) { oAux.focus(); bContinue = false; } - var regExp = /^(?!^(PRN|AUX|CLOCK\$|NUL|CON|COM\d|LPT\d|\..*)(\..+)?$)[^\x00-\x1f\\?*:\";|/]+$/; - if (regExp.test(oAux.value)) { + var regEx = /^(?!^(PRN|AUX|CLOCK\$|NUL|CON|COM\d|LPT\d|\..*)(\..+)?$)[^\x00-\x1f\\?*\";|/]+$/; + if (oAux.value.match(regEx)==null) { alert('@G::LoadTranslation(ID_INVALID_PROCESS_NAME)'); oAux.focus(); bContinue = false; @@ -142,7 +141,6 @@ var verifyProcessInformation = function(oForm) { nProcess.focus(); } }; - leimnud.event.add(getField('PRO_TITLE'), 'change', function() { var nProcess = new input(getField('PRO_TITLE')); getField('PRO_TITLE').value = getField('PRO_TITLE').value.replace(/^\s*|\s*$/g,""); @@ -158,7 +156,6 @@ leimnud.event.add(getField('PRO_TITLE'), 'change', function() { nProcess.focus(); } }); - function cancel() { Pm.tmp.editProcessPanel.remove(); }