Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038384Retail ModulesWeb POSpublic2018-04-17 09:012018-05-04 14:41
jorge-garcia 
jorge-garcia 
normalmajorhave not tried
closedfixed 
5
 
RR18Q3 
marvintm
No
0038384: OB.Dal.queryUsingCache is not working if pass params parameter
OB.Dal.queryUsingCache is not working if pass params parameter
Open developers tools from chrome a execute this code:
  var sql = "select * from m_product where 1 = 1 and m_product_id = ?";
  OB.Dal.queryUsingCache(OB.Model.Product, sql, ['934E7D7587EC4C7A9E9FF58F0382D450'], function(result){debugger;}, null, null);

In the first execution, result from callback has one product
Execute again:
  OB.Dal.queryUsingCache(OB.Model.Product, sql, ['934E7D7587EC4C7A9E9FF58F0382D450'], function(result){debugger;}, null, null);

In the second execution, result from callback is undefined
No tags attached.
related to defect 0038372 closed jorge-garcia In Discount By Payment Method, "Validate Date To" property is not working 
Issue History
2018-04-17 09:01jorge-garciaNew Issue
2018-04-17 09:01jorge-garciaAssigned To => jorge-garcia
2018-04-17 09:01jorge-garciaTriggers an Emergency Pack => No
2018-04-17 10:28jorge-garciaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=17013#r17013
2018-04-17 11:15jorge-garciaRelationship addedrelated to 0038372
2018-04-17 11:15jorge-garciaStatusnew => scheduled
2018-04-18 08:34hgbotCheckin
2018-04-18 08:34hgbotNote Added: 0103952
2018-04-18 08:34hgbotStatusscheduled => resolved
2018-04-18 08:34hgbotResolutionopen => fixed
2018-04-18 08:34hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/c58ab4a99c008d431603286c16e3cbbfbac0fa33 [^]
2018-05-04 14:41marvintmReview Assigned To => marvintm
2018-05-04 14:41marvintmStatusresolved => closed
2018-05-04 14:41marvintmFixed in Version => RR18Q3

Notes
(0103952)
hgbot   
2018-04-18 08:34   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: c58ab4a99c008d431603286c16e3cbbfbac0fa33
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Apr 17 10:31:03 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/c58ab4a99c008d431603286c16e3cbbfbac0fa33 [^]

Fixed issue 38384: OB.Dal.queryUsingCache is not working if pass params
parameter

Use complete API from OB.Cache to pass sql and params as parameter.

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
---