Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031372Retail ModulesWeb POSpublic2015-11-05 12:302015-11-08 09:08
marvintm 
marvintm 
urgentmajoralways
closedfixed 
5
 
RR16Q1 
mtaal
No
0031372: When executing OB.Dal.get in Remote mode, if it returns no record, it fails with a hard crash
When OB.Dal.get is used to get a record from the database, in remote mode, if it doesn't return any records, instead of returning null, it fails with a hard crash.
- Create a receipt with one product.
- Remove this product from the assortment.
- Load the ticket. Verify that OB.Dal.get fails.
No tags attached.
related to defect 0031399RR16Q1 closed mtaal Message is worded in less correct english: The paid receipt can not be loaded because it has got some line with a product that i 
related to defect 0031400RR16Q1 closed mtaal Javascript error when adding a new customer and address in remote product 
Issue History
2015-11-05 12:30marvintmNew Issue
2015-11-05 12:30marvintmAssigned To => marvintm
2015-11-05 12:30marvintmTriggers an Emergency Pack => No
2015-11-06 11:49hgbotCheckin
2015-11-06 11:49hgbotNote Added: 0081561
2015-11-06 11:49hgbotStatusnew => resolved
2015-11-06 11:49hgbotResolutionopen => fixed
2015-11-06 11:49hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/30ccb11e9303899e68187ae277d4d9f64085f894 [^]
2015-11-06 11:50marvintmReview Assigned To => migueldejuana
2015-11-08 09:06mtaalRelationship addedrelated to 0031399
2015-11-08 09:08mtaalReview Assigned Tomigueldejuana => mtaal
2015-11-08 09:08mtaalNote Added: 0081582
2015-11-08 09:08mtaalStatusresolved => closed
2015-11-08 09:08mtaalFixed in Version => RR16Q1
2015-11-08 20:06mtaalRelationship addedrelated to 0031400

Notes
(0081561)
hgbot   
2015-11-06 11:49   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 30ccb11e9303899e68187ae277d4d9f64085f894
Author: Antonio Moreno Perez <antonio.moreno <at> openbravo.com>
Date: Fri Nov 06 11:46:34 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/30ccb11e9303899e68187ae277d4d9f64085f894 [^]

Fixed issue 31372. Now the empty callback will be used by OB.Dal.get in remote mode if it's defined, and the query returns no results.

---
M web/org.openbravo.mobile.core/source/data/ob-dal.js
---
(0081582)
mtaal   
2015-11-08 09:08   
Reviewed and tested