details:   https://code.openbravo.com/erp/devel/pi/rev/f71fb18c4538
changeset: 33642:f71fb18c4538
user:      David Miguelez <david.miguelez <at> openbravo.com>
date:      Tue Mar 06 16:55:15 2018 +0100
summary:   Related to Issue 37827: [ri][cr] Changed "x" expression for one that 
explains
why we compare an id to a literal that is not going to match any Id

diffstat:

 src/org/openbravo/materialmgmt/refinventory/ReferencedInventoryUtil.java |  3 
++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 66d4469fe6c4 -r f71fb18c4538 
src/org/openbravo/materialmgmt/refinventory/ReferencedInventoryUtil.java
--- a/src/org/openbravo/materialmgmt/refinventory/ReferencedInventoryUtil.java  
Tue Mar 06 14:39:25 2018 +0000
+++ b/src/org/openbravo/materialmgmt/refinventory/ReferencedInventoryUtil.java  
Tue Mar 06 16:55:15 2018 +0100
@@ -238,7 +238,8 @@
     final Session session = OBDal.getInstance().getSession();
     final Query sdQuery = session.createQuery(olHql);
     sdQuery.setParameter("sdBinId", storageDetail.getStorageBin().getId());
-    sdQuery.setParameter("toBindId", newStorageBin == null ? "x" : 
newStorageBin.getId());
+    sdQuery.setParameter("toBindId", newStorageBin != null ? 
newStorageBin.getId()
+        : "noStorageBinToIDShouldMatch");
     sdQuery.setParameter("sdAttributeSetId", 
storageDetail.getAttributeSetValue().getId());
     sdQuery.setParameter("productId", storageDetail.getProduct().getId());
     sdQuery.setParameter("uomId", storageDetail.getUOM().getId());

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Openbravo-commits mailing list
Openbravo-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openbravo-commits

Reply via email to