related with bug 37363: minor related code improvement
authorCarlos Aristu <carlos.aristu@openbravo.com>
Thu, 23 Nov 2017 12:58:33 +0100
changeset 33039 62bee3798905
parent 33038 4878d550b906
child 33040 64d20a56c50a
related with bug 37363: minor related code improvement

Use equalsIgnoreCase for the dataOriginType comparison.
src/org/openbravo/erpCommon/utility/UsedByLink.java
--- a/src/org/openbravo/erpCommon/utility/UsedByLink.java	Thu Nov 23 09:24:29 2017 +0100
+++ b/src/org/openbravo/erpCommon/utility/UsedByLink.java	Thu Nov 23 12:58:33 2017 +0100
@@ -691,7 +691,7 @@
         linkedTableId = entity.getTableId();
         linkedTableObject = OBDal.getInstance().get(Table.class, linkedTableId);
         dataOriginType = linkedTableObject.getDataOriginType();
-        if (!"TABLE".equals(dataOriginType.toUpperCase())) {
+        if (!"TABLE".equalsIgnoreCase(dataOriginType)) {
           // Datasource tables are skipped
           continue;
         }