Openbravo Issue Tracking System - Retail Modules | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0034023 | Retail Modules | StoreServer | public | 2016-09-19 22:26 | 2016-09-28 09:15 | ||||||||||||||
Reporter | mtaal | ||||||||||||||||||
Assigned To | mtaal | ||||||||||||||||||
Priority | normal | Severity | major | Reproducibility | have not tried | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | RR16Q4 | Fixed in Version | RR16Q4 | ||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | Sandrahuguet | ||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | |||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0034023: JSON error unexpected token in remote BP data when saving address through customer | ||||||||||||||||||
Description | When editing and saving an address through the customer then the error ' Unexpected token o in JSON at position 1' is reported. Strack trace: ce25035…_WebPOS.js:2856 SyntaxError: Unexpected token o in JSON at position 1 at http://store1.openbravo.com:8080/openbravo/web/js/gen/ce2503585cded83ecbab0c78d4c7719d_WebPOS.js:7314:32 [^] at Array.forEach (native) at Function.b.each.b.forEach (http://store1.openbravo.com:8080/openbravo/web/org.openbravo.mobile.core/lib/vendor/underscore-1.3.3.min.js:11:39 [^]) at r.(anonymous function) [as each] (http://store1.openbravo.com:8080/openbravo/web/org.openbravo.mobile.core/lib/vendor/backbone-0.9.2.min.js:25:314 [^]) at http://store1.openbravo.com:8080/openbravo/web/js/gen/ce2503585cded83ecbab0c78d4c7719d_WebPOS.js:7312:21 [^] at processResult (http://store1.openbravo.com:8080/openbravo/web/js/gen/ce2503585cded83ecbab0c78d4c7719d_WebPOS.js:4180:11 [^]); line: Object.OB.UTIL.showError (http://store1.openbravo.com:8080/openbravo/web/js/gen/ce2503585cded83ecbab0c78d4c7719d_WebPOS.js:11173:6 [^]) (*,+)processConsoleLevel @ ce25035…_WebPOS.js:2856OB.error @ ce25035…_WebPOS.js:2886OB.UTIL.showError @ ce25035…_WebPOS.js:11173window.onerror @ ce25035…_WebPOS.js:22654 VM87:1 Uncaught SyntaxError: Unexpected token o in JSON at position 1 | ||||||||||||||||||
Steps To Reproduce | Login to webpos Click on Menu Select Customers Search any customer Click on customer click on create new address Create a new address Save Note the error only occurs if you first go through the customers menu not when going through the customer/address button | ||||||||||||||||||
Proposed Solution | The error is caused by this line: bpLocToSave.set('json', customerAddr.serializeToJSON()); Here: https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/file/200182f3db29/web/org.openbravo.retail.posterminal/js/data/datacustomeraddrsave.js#l57 [^] It must be changed to: bpLocToSave.set('json', JSON.stringify(customerAddr.serializeToJSON())); | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | |||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2016-09-19 22:26 | mtaal | New Issue | |||||||||||||||||
2016-09-19 22:26 | mtaal | Assigned To | => mtaal | ||||||||||||||||
2016-09-19 22:26 | mtaal | Triggers an Emergency Pack | => No | ||||||||||||||||
2016-09-19 23:40 | mtaal | Status | new => scheduled | ||||||||||||||||
2016-09-19 23:45 | hgbot | Checkin | |||||||||||||||||
2016-09-19 23:45 | hgbot | Note Added: 0090092 | |||||||||||||||||
2016-09-19 23:45 | hgbot | Status | scheduled => resolved | ||||||||||||||||
2016-09-19 23:45 | hgbot | Resolution | open => fixed | ||||||||||||||||
2016-09-19 23:45 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/c7609896cb418d5f6a32497d46fc6abd033cde79 [^] | ||||||||||||||||
2016-09-22 17:38 | mtaal | Review Assigned To | => Sandrahuguet | ||||||||||||||||
2016-09-22 17:38 | mtaal | Description Updated | bug_revision_view_page.php?rev_id=13163#r13163 | ||||||||||||||||
2016-09-28 09:15 | Sandrahuguet | Note Added: 0090325 | |||||||||||||||||
2016-09-28 09:15 | Sandrahuguet | Status | resolved => closed | ||||||||||||||||
2016-09-28 09:15 | Sandrahuguet | Fixed in Version | => RR16Q4 | ||||||||||||||||
2017-05-16 16:28 | migueldejuana | Relationship added | related to 0035998 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|