Openbravo Issue Tracking System - Retail Modules
View Issue Details
0029928Retail ModulesWeb POSpublic2015-04-22 14:162015-05-19 18:11
guillermogil 
Orekaria 
normalminoralways
closedfixed 
3014.10
pi 
RR15Q1.4RR15Q1.4 
marvintm
No
0029928: WebPOS does not work on the lastest beta Chrome release (43)
There has been an API restriction to webSQL calls on the lastest beta Chrome release (43). on the lastest stable chrome version (42) it works properly.

Uncaught TypeError: Failed to execute 'executeSql' on 'SQLTransaction': The 2nd argument is neither an array, nor does it have indexed properties.

It is looking for an empty array but it is receiving an empty object.
Install beta Chrome release
Try to log in.
Do not use empty objects, instead use empty arrays.
No tags attached.
blocks defect 0029670pi closed marvintm WebPOS does not work on the lastest beta Chrome release (43) 
Issue History
2015-05-19 10:23OrekariaTypedefect => backport
2015-05-19 10:23OrekariaTarget Versionpi => RR15Q1.4
2015-05-19 10:28hgbotCheckin
2015-05-19 10:28hgbotNote Added: 0077562
2015-05-19 10:28hgbotStatusscheduled => resolved
2015-05-19 10:28hgbotResolutionopen => fixed
2015-05-19 10:28hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/2dd368c5b513019e5ce47143aaab643f688d447e [^] => http://code.openbravo.com/retail/backports/3.0RR15Q1.4/org.openbravo.mobile.core/rev/7cd6c5ef81a64871ccf67c7bc3b8d97743a69f1d [^]
2015-05-19 18:11marvintmStatusresolved => closed
2015-05-19 18:11marvintmFixed in Version => RR15Q1.4

Notes
(0077562)
hgbot   
2015-05-19 10:28   
Repository: retail/backports/3.0RR15Q1.4/org.openbravo.mobile.core
Changeset: 7cd6c5ef81a64871ccf67c7bc3b8d97743a69f1d
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Tue May 19 10:27:17 2015 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR15Q1.4/org.openbravo.mobile.core/rev/7cd6c5ef81a64871ccf67c7bc3b8d97743a69f1d [^]

Fixes issue 29928, backport of issue 29670: WebPOS does not work on Chrome 43

There has been an API restriction to webSQL calls on the lastest beta Chrome release (43) on the lastest stable chrome version (42) it works properly.
Just call to the executeSQL with an empty array instead of and object
* * *
Fixes issue 29672, backport of issue 29670. Changed ob-dal so that it doesn't fail in Chrome v43 (I - III)
- All possible calls to executeSql with parameter {} have been replaced with [].
Applied several items of the code-review feedback:
- Removed changes to ob-cache as they are not necessary
- Standardized variable names and calls to identify when wrong parameter is passed
- Removed transformation done out of the local database code
- Replaced some nulls by [] to unify empty parameter object
Fixed small typo.

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