Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0029328 | Retail Modules | Web POS | public | 2014-12-11 18:06 | 2015-04-13 18:40 |
|
Reporter | aaroncalero | |
Assigned To | aaroncalero | |
Priority | low | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
Target Version | RR15Q1.3 | Fixed in Version | RR15Q1.3 | |
Merge Request Status | |
Review Assigned To | adrianromero |
OBNetwork customer | |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0029328: Changing main window before callbacks are executed causes javascript errors |
Description | Changing the main window of the WebPOS (e.g. from #retail.pointofsale to #retail.cashup) before the initial window has finished loading (all callbacks have finished executing) causes javascript errors because the initial window is destroyed upon navigation. If there are pending callbacks that access window components (which have already been destroyed), errors similar to the following will be logged to the console:
posterminal.main.js: Uncaught TypeError: Cannot read property 'createComponent' of undefined; |
Steps To Reproduce | Go to https://livebuilds.openbravo.com/retail_pi_pgsql/web/org.openbravo.retail.posterminal/?terminal=VBS-1 [^]
Log in with demouser/openbravo
As soon as the menu is available, switch to Cash Management or Cash Up windows.
Error messages will appear on the upper right corner of the screen and they will also be logged to the browser console. |
Proposed Solution | Callbacks that execute asynchronously should check that the elements they are referencing still exist (objects that have been destroyed have a 'destroyed' attribute set to true). |
Additional Information | |
Tags | Approved |
Relationships | related to | defect | 0029575 | | new | marvintm | Changing main window just after login causes a double navigation | blocks | defect | 0028391 | | closed | aaroncalero | Changing main window before callbacks are executed causes javascript errors |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2015-03-18 10:29 | malsasua | Type | defect => backport |
2015-03-18 10:29 | malsasua | Target Version | => RR15Q1.2 |
2015-03-18 12:54 | dmitry_mezentsev | Tag Attached: Approved | |
2015-03-26 18:59 | malsasua | Target Version | RR15Q1.2 => RR15Q1.3 |
2015-04-13 11:47 | Orekaria | Note Added: 0076467 | |
2015-04-13 11:47 | Orekaria | Status | scheduled => resolved |
2015-04-13 11:47 | Orekaria | Fixed in Version | => RR15Q1.3 |
2015-04-13 11:47 | Orekaria | Resolution | open => fixed |
2015-04-13 16:40 | adrianromero | Note Added: 0076484 | |
2015-04-13 16:48 | adrianromero | Note Deleted: 0076484 | |
2015-04-13 16:51 | adrianromero | Note Added: 0076485 | |
2015-04-13 17:06 | hgbot | Checkin | |
2015-04-13 17:06 | hgbot | Note Added: 0076492 | |
2015-04-13 17:06 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/d7d844ee8a819805d1c870289b1d36ac2205cbe9 [^] => http://code.openbravo.com/retail/backports/3.0RR15Q1.3/org.openbravo.retail.posterminal/rev/b71c669fc94bf4adb1e24e8934397a47bca6c0b2 [^] |
2015-04-13 18:40 | adrianromero | Review Assigned To | Orekaria => adrianromero |
2015-04-13 18:40 | adrianromero | Note Added: 0076505 | |
2015-04-13 18:40 | adrianromero | Status | resolved => closed |
2015-04-13 18:40 | adrianromero | Relationship added | related to 0029575 |
Notes |
|
|
|
|
|
changeset: 1105:04113fd64d2f
user: Aaron Calero <aaron.calero@openbravo.com>
date: Mon Dec 15 13:51:22 2014 +0100
files: web/org.openbravo.mobile.core/source/component/ob-keyboard.js web/org.openbravo.mobile.core/source/retail/component/ob-retail-product-browser.js web/org.openbravo.mobile.core/source/retail/component/ob-retail-searchproductcharacteristic.js web/org.openbravo.mobile.core/source/retail/component/ob-retail-searchproducts.js
description:
Fixed issue 28391: Changing main window before callbacks are executed causes javascript errors
Fixed code in mobile core module. Added several checks to return inmediately if components have already been destroyed. |
|
|
(0076492)
|
hgbot
|
2015-04-13 17:06
|
|
|
|
|
|