Merge pull request #2418 from marcoAntonioNina/BUG-14974
BUG-14974 It's possible to create a new process with blank space SOLVED
This commit is contained in:
@@ -501,18 +501,23 @@ function newProcess(){
|
||||
|
||||
function saveProcess()
|
||||
{
|
||||
Ext.getCmp('newProcessForm').getForm().submit( {
|
||||
url : '../processProxy/saveProcess',
|
||||
waitMsg : _('ID_SAVING_PROCESS'),
|
||||
waitTitle : " ",
|
||||
timeout : 36000,
|
||||
success : function(obj, resp) {
|
||||
location.href = 'processes_Map?PRO_UID='+resp.result.PRO_UID;
|
||||
},
|
||||
failure: function(obj, resp) {
|
||||
PMExt.error( _('ID_ERROR'), resp.result.msg);
|
||||
Ext.getCmp('PRO_TITLE').setValue((Ext.getCmp('PRO_TITLE').getValue()).trim());
|
||||
if (Ext.getCmp('newProcessForm').getForm().isValid()) {
|
||||
Ext.getCmp('newProcessForm').getForm().submit( {
|
||||
url : '../processProxy/saveProcess',
|
||||
waitMsg : _('ID_SAVING_PROCESS'),
|
||||
waitTitle : " ",
|
||||
timeout : 36000,
|
||||
success : function(obj, resp) {
|
||||
location.href = 'processes_Map?PRO_UID='+resp.result.PRO_UID;
|
||||
},
|
||||
failure: function(obj, resp) {
|
||||
PMExt.error( _('ID_ERROR'), resp.result.msg);
|
||||
}
|
||||
});
|
||||
} else {
|
||||
PMExt.error( _('ID_ERROR'), _('ID_INVALID_PROCESS_NAME'));
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function doSearch(){
|
||||
|
||||
Reference in New Issue
Block a user