BUG 12752 "Al editar de forma erronea un campo de..." SOLVED
- Al editar de forma erronea un campo de Report Table, despliega un mensaje en movimiento - Problema: En ADMIN>Settings>PMTable al seleccionar la opcion Report Table, se crea un nuevo campo con un tipo y dando un valor al campo size, al introducir un dato erroneo el campo size se muestra un mensaje en movimiento dificultado su visibilidad. - Solucion: Se elimino el mensaje en movimiento cambiandolo por otro, donde se muestra el mensaje sin ninguna dificultad. Disponible para la version 2.5.2
This commit is contained in:
@@ -409,6 +409,8 @@ Ext.onReady(function(){
|
||||
Ext.getCmp("sizeEdit").disable();
|
||||
Ext.getCmp("sizeEdit").setValue("");
|
||||
}
|
||||
|
||||
flagShowMessageError = 1;
|
||||
}
|
||||
}//select
|
||||
}
|
||||
@@ -481,13 +483,45 @@ Ext.onReady(function(){
|
||||
]
|
||||
});
|
||||
//row editor for table columns grid
|
||||
var flagShowMessageError = 1;
|
||||
|
||||
editor = new Ext.ux.grid.RowEditor({
|
||||
saveText: _("ID_UPDATE"),
|
||||
|
||||
isValid: function()
|
||||
{
|
||||
var valid = true;
|
||||
this.items.each(function(f) {
|
||||
if(!f.isValid(true)){
|
||||
valid = false;
|
||||
|
||||
if (valid) {
|
||||
flagShowMessageError = 1;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
if (valid) {
|
||||
flagShowMessageError = 1;
|
||||
}
|
||||
return valid;
|
||||
},
|
||||
showTooltip: function (msg)
|
||||
{
|
||||
if (flagShowMessageError == 1) {
|
||||
Ext.msgBoxSlider.msgTopCenter("error", _("ID_ERROR"), msg, 3);
|
||||
flagShowMessageError = 0;
|
||||
}
|
||||
},
|
||||
|
||||
listeners: {
|
||||
canceledit: function(grid,obj){
|
||||
if ( grid.record.data.field_label == '' && grid.record.data.field_name == '') {
|
||||
store.remove(grid.record);
|
||||
}
|
||||
|
||||
flagShowMessageError = 1;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user