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,6 +501,8 @@ function newProcess(){
|
|||||||
|
|
||||||
function saveProcess()
|
function saveProcess()
|
||||||
{
|
{
|
||||||
|
Ext.getCmp('PRO_TITLE').setValue((Ext.getCmp('PRO_TITLE').getValue()).trim());
|
||||||
|
if (Ext.getCmp('newProcessForm').getForm().isValid()) {
|
||||||
Ext.getCmp('newProcessForm').getForm().submit( {
|
Ext.getCmp('newProcessForm').getForm().submit( {
|
||||||
url : '../processProxy/saveProcess',
|
url : '../processProxy/saveProcess',
|
||||||
waitMsg : _('ID_SAVING_PROCESS'),
|
waitMsg : _('ID_SAVING_PROCESS'),
|
||||||
@@ -513,6 +515,9 @@ function saveProcess()
|
|||||||
PMExt.error( _('ID_ERROR'), resp.result.msg);
|
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