Openbravo Issue Tracking System - POS2
View Issue Details
0049543POS2POSpublic2022-06-13 17:292022-06-13 23:54
AugustoMauch 
AugustoMauch 
normalcriticalhave not tried
closedfixed 
5
 
 
No
0049543: Error thrown after doing a relogin, caused by a bad management of the AvailableProductFilterRegistry
The AvailableProductFilterRegistry is a registry where we can enter buttons that will be available in the product search window.

The registry throws an error if two entries of the same type are registered. The problem is that because we register the entries when a user logs in and we don't ever reset the registry, the second time a user logs in the entries registered in the first login will be registered again, causing the error
In any react pos environment, in development mode:
- Login
- Logout
- Login again. An error will be thrown (see attached image)
No tags attached.
has duplicate defect 0049552 closed Retail FLUN-3084 - OBPOS2_Characteristic_SULPHITES error 
Issue History
2022-06-13 17:29AugustoMauchNew Issue
2022-06-13 17:29AugustoMauchAssigned To => Retail
2022-06-13 17:29AugustoMauchTriggers an Emergency Pack => No
2022-06-13 17:29AugustoMauchAssigned ToRetail => AugustoMauch
2022-06-13 17:29AugustoMauchStatusnew => scheduled
2022-06-13 17:38hgbotNote Added: 0138318
2022-06-13 23:54hgbotResolutionopen => fixed
2022-06-13 23:54hgbotStatusscheduled => closed
2022-06-13 23:54hgbotNote Added: 0138326
2022-06-13 23:54hgbotNote Added: 0138327
2022-06-27 16:31AugustoMauchRelationship addedhas duplicate 0049552

Notes
(0138318)
hgbot   
2022-06-13 17:38   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1000 [^]
(0138326)
hgbot   
2022-06-13 23:54   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: af16f32f8b295ded4144428e38af33b5c370566e
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 13-06-2022 23:48:57
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/af16f32f8b295ded4144428e38af33b5c370566e [^]

Fixes ISSUE-49543: Reset AvailableProductFilterRegistry on login

Because AvailableProductFilterRegistry entries are added on login, we
need to reset it before in order to prevent errors due to the registration of already registered entries

---
M web-jspack/org.openbravo.pos2/src/authentication/loginInitActions.js
M web-jspack/org.openbravo.pos2/src/ob-init.js
---
(0138327)
hgbot   
2022-06-13 23:54   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1000 [^]