Openbravo Issue Tracking System - Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0052863 | Modules | Events for Client | public | 2023-06-27 15:29 | 2023-06-30 09:19 |
|
Reporter | frank_gonzalez | |
Assigned To | Triage Platform Conn | |
Priority | normal | Severity | major | Reproducibility | sometimes |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | | |
Merge Request Status | |
Regression date | |
Regression introduced by commit | https://gitlab.com/openbravo/product/pmods/org.openbravo.events.client/-/commit/fc6fd1d45c9b21080b0eef91b11b0cfb5bd43e7c [^] |
Regression level | |
Review Assigned To | |
Support ticket | |
OBNetwork customer | |
Regression introduced in release | |
|
Summary | 0052863: Change from lodash to underscore causing problems in MessagesManager |
Description | Problems occurring in web/org.openbravo.events.client/source/events/messagesmanager.js at processQuery method. The errors occur in two environments so far: POS1 and SMCP test, both with BE Fiscalization. It appears to be caused by the switch from lodash to underscore, specifically the following change: lodash.get() -> _.result(). |
Steps To Reproduce | 1. Configure an Openbravo instance with the Fiscalization BE module (https://docs.google.com/document/d/1XcA_-_RRkVdYDEc3m6RKQmTyRs04pTvnxDTyjUerJ3w/edit [^])
2. Open Chrome dev tools and set a breakpoint in the MessagesManager.processQuery() method wherever the statement 'return _.result()' is executed or execute the statement manually within the method's scope in the following step
3. Attempt a login with the terminal configured in step 1
4. Verify that the function returns 'undefined' for the query |
Proposed Solution | Insert a check for string and if so, convert path to array
e.g. return _.result(
dbobject,
typeof path === 'string' ? path.split('.') : path
); |
Additional Information | |
Tags | No tags attached. |
Relationships | caused by | design defect | 0051088 | | closed | adrianromero | Retail Modules | [Payment Limit validation] Event payment limit management should be configurable at organization or touchpoint type level | blocks | defect | 0052817 | | closed | frank_gonzalez | Openbravo Localizations | [BE] MTS appears empty in Sales Order |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2023-06-27 15:29 | frank_gonzalez | New Issue | |
2023-06-27 15:29 | frank_gonzalez | Assigned To | => Triage Platform Conn |
2023-06-27 15:36 | frank_gonzalez | Relationship added | caused by 0051088 |
2023-06-27 16:40 | frank_gonzalez | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=26360#r26360 |
2023-06-28 10:42 | frank_gonzalez | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=26367#r26367 |
2023-06-28 10:42 | frank_gonzalez | Proposed Solution updated | |
2023-06-28 10:48 | hgbot | Note Added: 0151719 | |
2023-06-28 11:58 | psanjuan | Relationship added | blocks 0052817 |
2023-06-29 10:50 | frank_gonzalez | Regression introduced by commit | => https://gitlab.com/openbravo/product/pmods/org.openbravo.events.client/-/commit/fc6fd1d45c9b21080b0eef91b11b0cfb5bd43e7c [^] |
2023-06-30 09:19 | hgbot | Note Added: 0151925 | |
2023-06-30 09:19 | hgbot | Resolution | open => fixed |
2023-06-30 09:19 | hgbot | Status | new => closed |
2023-06-30 09:19 | hgbot | Note Added: 0151926 | |