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()
|
function saveProcess()
|
||||||
{
|
{
|
||||||
Ext.getCmp('newProcessForm').getForm().submit( {
|
Ext.getCmp('PRO_TITLE').setValue((Ext.getCmp('PRO_TITLE').getValue()).trim());
|
||||||
url : '../processProxy/saveProcess',
|
if (Ext.getCmp('newProcessForm').getForm().isValid()) {
|
||||||
waitMsg : _('ID_SAVING_PROCESS'),
|
Ext.getCmp('newProcessForm').getForm().submit( {
|
||||||
waitTitle : " ",
|
url : '../processProxy/saveProcess',
|
||||||
timeout : 36000,
|
waitMsg : _('ID_SAVING_PROCESS'),
|
||||||
success : function(obj, resp) {
|
waitTitle : " ",
|
||||||
location.href = 'processes_Map?PRO_UID='+resp.result.PRO_UID;
|
timeout : 36000,
|
||||||
},
|
success : function(obj, resp) {
|
||||||
failure: function(obj, resp) {
|
location.href = 'processes_Map?PRO_UID='+resp.result.PRO_UID;
|
||||||
PMExt.error( _('ID_ERROR'), resp.result.msg);
|
},
|
||||||
|
failure: function(obj, resp) {
|
||||||
|
PMExt.error( _('ID_ERROR'), resp.result.msg);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
PMExt.error( _('ID_ERROR'), _('ID_INVALID_PROCESS_NAME'));
|
||||||
}
|
}
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function doSearch(){
|
function doSearch(){
|
||||||
|
|||||||
Reference in New Issue
Block a user