Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0041268 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
backport | [Retail Modules] Web POS | major | always | 2019-07-01 09:58 | 2019-08-06 16:12 | |||
Reporter | aaroncalero | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | high | Resolution | fixed | Fixed in Version | RR19Q2.2 | |||
Status | closed | Fix in branch | Fixed in SCM revision | b963e8c9401e | ||||
Projection | none | ETA | none | Target Version | RR19Q2.2 | |||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
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 | 0041268: 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))) { | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
||||||||
|
![]() |
|
(0113558) hgbot (developer) 2019-07-22 12:07 |
Repository: retail/backports/3.0RR19Q2.2/org.openbravo.retail.posterminal Changeset: 3890477c3f2cabb3c889c814b0fa5e361e8dd843 Author: Ranjith S R <ranjith <at> qualiantech.com> Date: Mon Jul 22 15:36:26 2019 +0530 URL: http://code.openbravo.com/retail/backports/3.0RR19Q2.2/org.openbravo.retail.posterminal/rev/3890477c3f2cabb3c889c814b0fa5e361e8dd843 [^] Related to issue 41268 : Shipping Address should be same as invoice address when loading paid receipt * When splitting lines with promotions, line lineQtyOffer should be updated instead of creating new lines to apply promotions --- M web/org.openbravo.retail.posterminal/js/model/order.js --- |
(0113559) hgbot (developer) 2019-07-22 12:08 |
Repository: retail/backports/3.0RR19Q2.2/org.openbravo.mobile.core Changeset: f9e72aad8cd3304fe8823775c85093867fc384f5 Author: Ranjith S R <ranjith <at> qualiantech.com> Date: Mon Jul 22 15:36:28 2019 +0530 URL: http://code.openbravo.com/retail/backports/3.0RR19Q2.2/org.openbravo.mobile.core/rev/f9e72aad8cd3304fe8823775c85093867fc384f5 [^] Related to issue 41268 : Update OB.UTIL.clone to check the property is an Array * When cloning object from array, if object is backbone the it should cloned recursively if object is not backbone, then copy of object should be pushed to target object --- M web/org.openbravo.mobile.core/source/utils/ob-utilities.js --- |
![]() |
|||
Date Modified | Username | Field | Change |
2019-07-03 19:04 | marvintm | Type | defect => backport |
2019-07-03 19:04 | marvintm | Target Version | => RR19Q2.2 |
2019-07-22 12:07 | hgbot | Checkin | |
2019-07-22 12:07 | hgbot | Note Added: 0113558 | |
2019-07-22 12:08 | hgbot | Checkin | |
2019-07-22 12:08 | hgbot | Note Added: 0113559 | |
2019-07-22 12:09 | ranjith_qualiantech_com | Status | scheduled => resolved |
2019-07-22 12:09 | ranjith_qualiantech_com | Resolution | open => fixed |
2019-08-06 16:12 | marvintm | Review Assigned To | => marvintm |
2019-08-06 16:12 | marvintm | Status | resolved => closed |
2019-08-06 16:12 | marvintm | Fixed in Version | => RR19Q2.2 |
Copyright © 2000 - 2009 MantisBT Group |