diff --git a/workflow/engine/templates/pmTables/editReport.js b/workflow/engine/templates/pmTables/editReport.js index 8fa64c6db..7747ea7d6 100755 --- a/workflow/engine/templates/pmTables/editReport.js +++ b/workflow/engine/templates/pmTables/editReport.js @@ -910,7 +910,7 @@ function createReportTable() { var tableName = Ext.getCmp('REP_TAB_NAME').getValue().trim(); var tableDescription = Ext.getCmp('REP_TAB_DSC').getValue().trim(); - + //validate table name if(Ext.getCmp('REP_TAB_NAME').getValue().trim() == '') { Ext.getCmp('REP_TAB_NAME').focus(); @@ -919,6 +919,15 @@ function createReportTable() }); return false; } + + //validate process + if(Ext.getCmp('PROCESS').getValue().trim() == '') { + 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) {