Fixes issue when trying to delete query list widget
authorIván Perdomo <ivan.perdomo@openbravo.com>
Tue, 25 Jan 2011 19:43:05 +0100
changeset 10124 f2c71bba342c
parent 10123 d62a4a5f2000
child 10125 ddb356afbb3d
Fixes issue when trying to delete query list widget
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-eventhandler.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-eventhandler.js	Tue Jan 25 19:20:10 2011 +0100
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/ob-eventhandler.js	Tue Jan 25 19:43:05 2011 +0100
@@ -52,7 +52,7 @@
             canvas.view.setAsActiveView();
             return true;
           }
-          if (canvas.grid) {
+          if (isc.FormItem.isA(canvas) && canvas.grid) {
             canvas = canvas.grid;
           } if (isc.FormItem.isA(canvas) && canvas.form) {
             canvas = canvas.form;