Related issue 29602:wrong position of parenthesis in a condition
authorInigo Sanchez <inigo.sanchez@openbravo.com>
Mon, 01 Jun 2015 17:30:38 +0200
changeset 26847 d4644c111852
parent 26846 8721a7b97a6b
child 26848 14de467bd788
Related issue 29602:wrong position of parenthesis in a condition

The problem was the wrong position of parenthesis in a condicion. Now it has been solved
by updating position of parenthesis properly,
modules/org.openbravo.client.application/src/org/openbravo/client/application/WindowSettingsActionHandler.java
--- a/modules/org.openbravo.client.application/src/org/openbravo/client/application/WindowSettingsActionHandler.java	Mon Jun 01 13:16:02 2015 +0200
+++ b/modules/org.openbravo.client.application/src/org/openbravo/client/application/WindowSettingsActionHandler.java	Mon Jun 01 17:30:38 2015 +0200
@@ -85,8 +85,8 @@
             .hasReadOnlyAccess(dalConnectionProvider, roleId, tab.getId());
         String uiPattern = readOnlyAccess ? "RO" : tab.getUIPattern();
         // window should be read only when is assigned with a table defined as a view
-        if (!"RO".equals(uiPattern)
-            && ("T".equals(windowType) || "M".equals(windowType) && tab.getTable().isView())) {
+        if (!"RO".equals(uiPattern) && ("T".equals(windowType) || "M".equals(windowType))
+            && tab.getTable().isView()) {
           log4j.warn("Tab \"" + tab.getName()
               + "\" is set to read only because is assigned with a table defined as a view.");
           uiPattern = "RO";