Openbravo Issue Tracking System - Retail Modules | ||||||||||||
| View Issue Details | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0041269 | Retail Modules | Web POS | public | 2019-07-01 09:58 | 2019-08-06 16:14 | |||||||
| Reporter | aaroncalero | |||||||||||
| Assigned To | ranjith_qualiantech_com | |||||||||||
| Priority | high | Severity | major | Reproducibility | always | |||||||
| Status | closed | Resolution | fixed | |||||||||
| Platform | OS | 5 | OS Version | |||||||||
| Product Version | ||||||||||||
| Target Version | RR19Q1.3 | Fixed in Version | RR19Q1.3 | |||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | marvintm | |||||||||||
| OBNetwork customer | Gold | |||||||||||
| Support ticket | ||||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0041269: OB.UTIL.clone always copies arrays by reference | |||||||||||
| Description | OB.UTIL.clone always copies arrays by reference, instead of generating a new array and cloning the values. | |||||||||||
| Steps To Reproduce | Check the code that copies array properties: https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/tip/web/org.openbravo.mobile.core/source/utils/ob-utilities.js#l1057 [^] Instead of checking if the property is an array, the code is checking if the whole object is an array, which is wrong | |||||||||||
| Proposed Solution | In the linked code, change from } else if (_.isArray(source)) { to } else if (_.isArray(source.get(key))) { | |||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Relationships |
| |||||||||||
| Attached Files | ||||||||||||
| Issue History | ||||||||||||
| Date Modified | Username | Field | Change | |||||||||
| 2019-07-03 19:04 | marvintm | Type | defect => backport | |||||||||
| 2019-07-03 19:04 | marvintm | Target Version | => RR19Q1.3 | |||||||||
| 2019-07-18 09:11 | hgbot | Checkin | ||||||||||
| 2019-07-18 09:11 | hgbot | Note Added: 0113496 | ||||||||||
| 2019-07-18 09:11 | hgbot | Checkin | ||||||||||
| 2019-07-18 09:11 | hgbot | Note Added: 0113497 | ||||||||||
| 2019-07-18 09:11 | hgbot | Status | scheduled => resolved | |||||||||
| 2019-07-18 09:11 | hgbot | Resolution | open => fixed | |||||||||
| 2019-07-18 09:11 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/b963e8c9401e7a87f8758f6a08b89677a435a2cf [^] => http://code.openbravo.com/retail/backports/3.0RR19Q1.3/org.openbravo.mobile.core/rev/c5c5884d747dba12cc254c8fa59fc0ed05fb4118 [^] | |||||||||
| 2019-08-06 16:14 | marvintm | Review Assigned To | => marvintm | |||||||||
| 2019-08-06 16:14 | marvintm | Status | resolved => closed | |||||||||
| 2019-08-06 16:14 | marvintm | Fixed in Version | => RR19Q1.3 | |||||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||