BUG 10211 No existe validacion en la opcion "Base Skin", el mismo puede guardarse sin seleccionar el skin de base SOLVED

- Error in form validation
- Fix error in the form validation
This commit is contained in:
Julio Cesar Laura
2012-12-18 15:31:34 -04:00
parent 9528541feb
commit 1a59498713

View File

@@ -524,14 +524,18 @@ newSkin = function(){
PMExt.notify(_('ID_SKINS'),_('ID_SKIN_SUCCESS_CREATE'));
},
failure: function(form, action) {
Ext.getCmp("newDialog").destroy();
if( !action.result ) {
Ext.MessageBox.alert("error", action.response.responseText);
if (typeof(action.failureType) != 'undefined') {
Ext.MessageBox.alert("error", _('ID_REQUIRED_FIELDS_ERROR'));
newDialog.getEl().unmask();
return;
} else {
Ext.getCmp("newDialog").destroy();
if( !action.result ) {
Ext.MessageBox.alert("error", action.response.responseText);
return;
}
Ext.MessageBox.alert("error", action.result.error);
}
Ext.MessageBox.alert("error", action.result.error);
},
scope: Ext.getCmp("newform"),
// add some vars to the request, similar to hidden fields