=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js' --- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js 2013-12-25 23:03:08 +0000 +++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/app/scripts/app.js 2013-12-27 13:44:39 +0000 @@ -1490,24 +1490,26 @@ items.push(item); } - item = { - text: GIS.i18n.search, - iconCls: 'gis-menu-item-icon-search', - handler: function() { - if (layer.searchWindow) { - if (layer.searchWindow.isVisible()) { - return; - } - else { - layer.searchWindow.destroy(); - } - } + if (!(layer.id === gis.layer.event.id)) { + item = { + text: GIS.i18n.search, + iconCls: 'gis-menu-item-icon-search', + handler: function() { + if (layer.searchWindow) { + if (layer.searchWindow.isVisible()) { + return; + } + else { + layer.searchWindow.destroy(); + } + } - layer.searchWindow = GIS.app.SearchWindow(layer); - layer.searchWindow.show(); - } - }; - items.push(item); + layer.searchWindow = GIS.app.SearchWindow(layer); + layer.searchWindow.show(); + } + }; + items.push(item); + } items.push({ xtype: 'menuseparator', @@ -4840,7 +4842,7 @@ program.clearValue(); stage.clearValue(); - dataElementAvailable.removeAll(); + dataElementsByStageStore.removeAll(); dataElementSelected.removeAll(); startDate.reset();