Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0041043 | Retail Modules | Web POS | public | 2019-06-06 16:53 | 2019-06-25 13:06 |
Reporter | guillermogil | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | urgent | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | RR19Q3 | |||
Merge Request Status | |||||
Review Assigned To | guilleaer | ||||
OBNetwork customer | Gold | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0041043: Retry number is not updated | ||||
Description | Retry number is not updated if there is a preference defined and then removed unless you clear the cache or you define it to 0. | ||||
Steps To Reproduce | - Login on livebuilds (without retries preference created) - Execute the following on the console: OB.UTIL.localStorage.getItem('maxNumOfRequestRetries') - Value will be 0 - Execute the following on the console: OB.UTIL.localStorage.setItem('maxNumOfRequestRetries', 2) - Refresh the POS - Execute the following on the console: OB.UTIL.localStorage.getItem('maxNumOfRequestRetries') - Value will be 2 - Create the preference with value 0 on the backoffice - Reload the POS - Execute the following on the console: OB.UTIL.localStorage.getItem('maxNumOfRequestRetries') - Value will be 0 | ||||
Proposed Solution | This code should be updated: function getPreference(preference, minValue, defaultValue) { try { var val = OB.MobileApp.model.get('permissions')[preference]; if (!val || !_.isNumber(parseInt(val, 10)) || parseInt(val, 10) < minValue) { return defaultValue; } return parseInt(val, 10); } catch (e) { return defaultValue; } } !val condition is not working as expected. If there is no preference it should put 0 | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2019-06-06 16:53 | guillermogil | New Issue | |||
2019-06-06 16:53 | guillermogil | Assigned To | => Retail | ||
2019-06-06 16:53 | guillermogil | OBNetwork customer | => Gold | ||
2019-06-06 16:53 | guillermogil | Resolution time | => 1561154400 | ||
2019-06-06 16:53 | guillermogil | Triggers an Emergency Pack | => No | ||
2019-06-11 14:22 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2019-06-11 14:22 | ranjith_qualiantech_com | Status | new => scheduled | ||
2019-06-12 08:28 | hgbot | Checkin | |||
2019-06-12 08:28 | hgbot | Note Added: 0112589 | |||
2019-06-12 08:28 | hgbot | Status | scheduled => resolved | ||
2019-06-12 08:28 | hgbot | Resolution | open => fixed | ||
2019-06-12 08:28 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/03a80a7ff428c6f8b1a56ee62027c80347c05d88 [^] | ||
2019-06-25 13:06 | guilleaer | Review Assigned To | => guilleaer | ||
2019-06-25 13:06 | guilleaer | Status | resolved => closed | ||
2019-06-25 13:06 | guilleaer | Fixed in Version | => RR19Q3 |
Notes | |||||
|
|||||
|
|