From 1b78190fec8c161e1493f9756b41c32b336779eb Mon Sep 17 00:00:00 2001 From: Marco Antonio Nina Date: Thu, 3 Jan 2013 14:51:24 -0400 Subject: [PATCH] =?UTF-8?q?BUG=205357=20El=20Asistente=20de=20activaci?= =?UTF-8?q?=C3=B3o=20comprueba=20si=20el=20usuario...=20IMPROVEMENT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Function does not remove blanks. - Was add validation. --- workflow/engine/xmlform/triggers/triggers_Options.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/workflow/engine/xmlform/triggers/triggers_Options.xml b/workflow/engine/xmlform/triggers/triggers_Options.xml index f81235124..51b3c4d06 100755 --- a/workflow/engine/xmlform/triggers/triggers_Options.xml +++ b/workflow/engine/xmlform/triggers/triggers_Options.xml @@ -107,9 +107,12 @@ var triUid = document.getElementById('TRI_UID').value; } var triTitle =document.getElementById('TRI_TITLE').value; - if(triTitle==''){ + + triTitle = triTitle.replace(/^\s*|\s*$/g,""); + if (triTitle == '') { alert(G_STRINGS.ID_REQUIRED_NAME_TRIGGERS);return false; } + document.getElementById('TRI_TITLE').value = triTitle; var fieldsRequired = document.getElementById('FIELDS_REQUIRED').value; fieldsRequired = fieldsRequired.split(",");