Openbravo Issue Tracking System - POS2 | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0047570 | POS2 | POS | public | 2021-08-18 12:03 | 2021-09-29 12:51 |
Reporter | jarmendariz | ||||
Assigned To | elara | ||||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | jarmendariz | ||||
OBNetwork customer | |||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0047570: Application crashes with TypeError when CRM Connector is not configured | ||||
Description | When we log in in a POS2 environment without the CRM Connector configured, the following error appears during the load process: TypeError: Cannot read property 'filter' of undefined getDetailProperties src/components/Customer/CustomerForm/CustomerFormHandler.js:311 308 | if (!externalBpConfig) { 309 | return []; 310 | } > 311 | return externalBpConfig.properties 312 | .filter(property => property.displayInDetail) 313 | .sort((a, b) => a.detailSequenceNumber - b.detailSequenceNumber); 314 | } | ||||
Steps To Reproduce | In backoffice: - Go to Client -> 'The White Valley Group' - In Information tab, uncheck 'Enable CRM Connector' In POS2: - Perform a login | ||||
Proposed Solution | When CRM Connector is not enabled, OB.App.TerminalProperty.get('externalBpIntegration') or Terminal.externalBpIntegration returns an empty object ({}). So, in all places where we check the extBP configuration, we should add a check that the returned object is not empty. Also, I'd be a good idea to centralize this check logic and avoid repeating it thoughout our code. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2021-08-18 12:03 | jarmendariz | New Issue | |||
2021-08-18 12:03 | jarmendariz | Assigned To | => Retail | ||
2021-08-18 12:03 | jarmendariz | Triggers an Emergency Pack | => No | ||
2021-08-23 09:49 | dmiguelez | Resolution time | => 1632348000 | ||
2021-08-23 09:50 | dmiguelez | Assigned To | Retail => ealvarez | ||
2021-08-23 09:50 | dmiguelez | Status | new => acknowledged | ||
2021-08-28 01:44 | elara | Assigned To | ealvarez => elara | ||
2021-08-30 12:46 | dmiguelez | Assigned To | elara => ealvarez | ||
2021-09-03 04:30 | elara | Assigned To | ealvarez => elara | ||
2021-09-03 04:32 | elara | Status | acknowledged => scheduled | ||
2021-09-03 15:24 | dmiguelez | Assigned To | elara => ealvarez | ||
2021-09-10 17:13 | hgbot | Note Added: 0131712 | |||
2021-09-20 08:53 | guilleaer | Assigned To | ealvarez => elara | ||
2021-09-29 10:41 | hgbot | Resolution | open => fixed | ||
2021-09-29 10:41 | hgbot | Status | scheduled => resolved | ||
2021-09-29 10:41 | hgbot | Note Added: 0132065 | |||
2021-09-29 10:41 | hgbot | Note Added: 0132066 | |||
2021-09-29 12:51 | jarmendariz | Review Assigned To | => jarmendariz | ||
2021-09-29 12:51 | jarmendariz | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|