Related to Issue 37934. Code Revie changes.
authorDavid Miguelez <david.miguelez@openbravo.com>
Fri, 02 Mar 2018 12:54:55 +0100
changeset 33618 0ded97bd7628
parent 33617 da52de15f453
child 33619 fca95a6558d2
Related to Issue 37934. Code Revie changes.

Return empty String instead of null to preserve previous behavior.
modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/GLItemSelectorFilterExpression.java
--- a/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/GLItemSelectorFilterExpression.java	Wed Feb 28 23:31:15 2018 +0530
+++ b/modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/GLItemSelectorFilterExpression.java	Fri Mar 02 12:54:55 2018 +0100
@@ -47,7 +47,7 @@
         whereClause.append("e.organization.id in (" + orgList + ")");
         return whereClause.toString();
       } else {
-        return null;
+        return "";
       }
     } catch (Exception e) {
       log.error("Error trying to get organization where clause for GL Item: ", e);