Openbravo Issue Tracking System - POS2 | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0046352 | POS2 | POS | public | 2021-04-26 12:34 | 2021-05-04 12:14 | |||||||
Reporter | jmelin | |||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||
Priority | urgent | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 30 | OS Version | Openbravo Appliance 14.04 | ||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | |||||||||||
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 | 0046352: JIRA 1731 - BP Assignation - message 'Cannot read property 'properties' of undefined' | |||||||||||
Description | This issue can not be reproduced on livebuild because the restaurant filter is not available. | |||||||||||
Steps To Reproduce | 1. Connect to POS 2. Search for a customer without changing the value in the YES/NO combo. - Check that the result is correctly showed 3. Open the YES/NO combo and select the Default value - Check that the error in the image (Cannot read property 'properties' of undefined) is showed. In the Chrome Dev tools we can see that the failing row is the one marked in *** const searchBusinessPartners = async formState => { let filters = {}; const filterValues = formState.fields; // filterValues keep in handler because it is necessary recover filterValues when back to search customerSelectorHandler.setFilterValues(filterValues); if (filterValues) { *** filters = Object.entries(filterValues).map(([key, value]) => { const foundComponent = formState.componentList.find( component => component.properties.name === key ); return { column: key, hqlFilter: undefined, isId: undefined, operator: '=', value: value.value, label: foundComponent.properties.label }; }); } The error in the console is: VM943:1 Uncaught ReferenceError: filterValues is not defined at eval (eval at <anonymous> (CustomerSelector.jsx:82), <anonymous>:1:16) at CustomerSelector.jsx:82 at Array.map (<anonymous>) at Ie.l.addFormAction.validateForm (CustomerSelector.jsx:72) at Ce.execute (FormHandler.js:133) at A (BaseForm.jsx:388)3 | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | Takeaway | |||||||||||
Relationships |
| |||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=15575&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=15576&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2021-04-26 12:34 | jmelin | New Issue | ||||||||||
2021-04-26 12:34 | jmelin | Assigned To | => Retail | |||||||||
2021-04-26 12:34 | jmelin | OBNetwork customer | => Gold | |||||||||
2021-04-26 12:34 | jmelin | Triggers an Emergency Pack | => No | |||||||||
2021-04-26 12:34 | jmelin | Tag Attached: Takeaway | ||||||||||
2021-04-26 12:35 | jmelin | File Added: 6bc2a682-e170-4f0b-95d3-d212c3e3f2b3.png | ||||||||||
2021-04-26 12:35 | jmelin | File Added: 3497137a-b535-4ff7-850b-e4a516313d7f.png | ||||||||||
2021-04-26 16:17 | javietxe | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=22369#r22369 | |||||||||
2021-04-26 16:30 | javietxe | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=22370#r22370 | |||||||||
2021-04-26 16:34 | javietxe | Resolution time | => 1620597600 | |||||||||
2021-04-27 12:20 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | |||||||||
2021-04-29 10:29 | guilleaer | Status | new => scheduled | |||||||||
2021-05-04 12:03 | ranjith_qualiantech_com | Note Added: 0127768 | ||||||||||
2021-05-04 12:03 | ranjith_qualiantech_com | Status | scheduled => resolved | |||||||||
2021-05-04 12:03 | ranjith_qualiantech_com | Resolution | open => fixed | |||||||||
2021-05-04 12:14 | guilleaer | Review Assigned To | => guilleaer | |||||||||
2021-05-04 12:14 | guilleaer | Status | resolved => closed |
Notes | |||||
|
|||||
|
|