From 795c06c5ee5c0ba83c78e15122d6eee83af00e99 Mon Sep 17 00:00:00 2001 From: Marco Antonio Nina Date: Tue, 25 Jun 2013 15:19:02 -0400 Subject: [PATCH] BUG-12257 No es posible crear un Report Table-New Version... SOLVED - El valor del PRO_UID no fue inicializado. - Se captura el valor para iniciar el PRO_UID. --- .../engine/templates/pmTables/editReport.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/workflow/engine/templates/pmTables/editReport.js b/workflow/engine/templates/pmTables/editReport.js index e0649868b..2f081a942 100755 --- a/workflow/engine/templates/pmTables/editReport.js +++ b/workflow/engine/templates/pmTables/editReport.js @@ -980,15 +980,15 @@ function createReportTable() return false; } - //validate process - PRO_UID = PRO_UID !== false ? PRO_UID : ((Ext.getCmp('PROCESS').getValue().trim() != '') ? Ext.getCmp('PROCESS').getValue().trim() : '') - if(PRO_UID == '') { - Ext.getCmp('PROCESS').focus(); - PMExt.error(_('ID_ERROR'), _('ID_PROCESS_IS_REQUIRED'), function(){ - Ext.getCmp('PROCESS').focus(); - }); - return false; - } + //validate process + PRO_UID = (PRO_UID !== false) ? PRO_UID : ((Ext.getCmp('PROCESS').getValue().trim() != '') ? Ext.getCmp('PROCESS').getValue().trim() : ''); + if(PRO_UID == '') { + Ext.getCmp('PROCESS').focus(); + PMExt.error(_('ID_ERROR'), _('ID_PROCESS_IS_REQUIRED'), function(){ + Ext.getCmp('PROCESS').focus(); + }); + return false; + } // validate table name length if(tableName.length < 4) {