Related with issue 27621: Fix backed out because it was causing a regression
authorAugusto Mauch <augusto.mauch@openbravo.com>
Fri, 19 Sep 2014 12:56:37 +0200
changeset 24451 c6301654f7cf
parent 24450 8854431e7ea2
child 24452 af234b76a941
child 24453 d93c32f374f9
Related with issue 27621: Fix backed out because it was causing a regression

The fix being backed out was making this issue [1] reproducible.

[1] https://issues.openbravo.com/view.php?id=19779
modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js
--- a/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js	Thu Sep 18 22:18:13 2014 +0000
+++ b/modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-action-button.js	Fri Sep 19 12:56:37 2014 +0200
@@ -102,13 +102,7 @@
 
       if (!me.opening) {
         me.opening = true; // To avoid button could be clicked twice
-        try {
-          theView.setContextInfo(sessionProperties, callbackFunction, true);
-        } catch (e) {
-          // to reset the button in case of any errors when processing button action.
-          // refer issue https://issues.openbravo.com/view.php?id=27621
-          me.opening = false;
-        }
+        theView.setContextInfo(sessionProperties, callbackFunction, true);
       }
       return;
     }