BUG 15074 Section DESIGNER message 'One item should be selected in order to execute the action.' is not displayed when not selected any row. SOLVED

This commit is contained in:
Roly Rudy Gutierrez Pinto
2014-06-04 14:14:54 -04:00
parent 9fcb401579
commit 557374fb9f

View File

@@ -589,6 +589,19 @@ function doSearch(){
editProcess = function(typeParam)
{
var rowSelected = processesGrid.getSelectionModel().getSelected();
if (!rowSelected) {
Ext.Msg.show({
title: '',
msg: _('ID_NO_SELECTION_WARNING'),
buttons: Ext.Msg.INFO,
fn: function () {
},
animEl: 'elId',
icon: Ext.MessageBox.INFO,
buttons: Ext.MessageBox.OK
});
return;
}
var url, pro_uid = rowSelected.data.PRO_UID;
var type = rowSelected.data.PROJECT_TYPE;