Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0047570
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POSmajorhave not tried2021-08-18 12:032021-09-10 17:13
ReporterjarmendarizView Statuspublic 
Assigned Toealvarez 
PrioritynormalResolutionopenFixed in Version
StatusscheduledFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0047570: Application crashes with TypeError when CRM Connector is not configured

DescriptionWhen 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 ReproduceIn backoffice:
- Go to Client -> 'The White Valley Group'
- In Information tab, uncheck 'Enable CRM Connector'

In POS2:
- Perform a login
Proposed SolutionWhen 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.
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0131712)
hgbot (developer)
2021-09-10 17:13

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/672 [^]

- 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


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker