PM-603 cases list con reprot tables eliminados SOLVED

- Cuando se borra un pmtable asociado a un cases list da un error por no encontrar los fields.
- cuando se borra la tabla se procede a poner en default la configuracion del cases list.
This commit is contained in:
Marco Antonio Nina
2014-10-16 12:25:45 -04:00
parent b81d78ff9d
commit 72c24f0f80
2 changed files with 14 additions and 3 deletions

View File

@@ -27,6 +27,12 @@ Ext.onReady(function () {
case "FIELD_SAVE":
var rs = firstGrid.store.data.items;
if (pmTablesDropdown.getValue() == '') {
if (rs.length != 0) {
Ext.Msg.alert(_("ID_INFO"), _("ID_EMPTY_PMTABLE"));
return;
}
}
var fv = [];
for (i = 0; i <= rs.length - 1; i++) {