Openbravo Issue Tracking System - POS2
View Issue Details
0057546POS2Corepublic2024-12-31 12:452025-01-03 13:26
cberner 
cberner 
normalmajorhave not tried
closedfixed 
5
 
25Q1 
No
0057546: Missing checks in configurable toolbar tables
There are several missing checks in configurable toolbar tables:
- Incorrect check in OBC2_ACTIONGROUP for column HIDEIFNOTACCESSIBLETOROLE (should check that column instead of isActive)
- Missing AD_MODULE_ID check in development for OBC2_ACTIONGROUP and OBC2_TOOLBAR tables.

Other required changes:
- Usage of count instead of list with limit 1(might be heavy on performance) in OBC2ToolbarConfigurationEventHandler
- Incorrect use of OBContext.setAdminMode in OBC2ToolbarConfigurationEventHandler and ConfigurableToolbarUtils
-
No tags attached.
caused by feature request 0056966 closed cberner Metadatical definition of toolbars as source data 
Issue History
2024-12-31 12:45cbernerNew Issue
2024-12-31 12:45cbernerAssigned To => Triage Platform Base
2024-12-31 12:45cbernerTriggers an Emergency Pack => No
2024-12-31 12:46cbernerAssigned ToTriage Platform Base => cberner
2024-12-31 12:46cbernerStatusnew => acknowledged
2024-12-31 12:47cbernerRelationship addedcaused by 0056966
2024-12-31 14:39hgbotNote Added: 0173768
2025-01-03 13:26hgbotResolutionopen => fixed
2025-01-03 13:26hgbotStatusacknowledged => closed
2025-01-03 13:26hgbotFixed in Version => 25Q1
2025-01-03 13:26hgbotNote Added: 0173826
2025-01-03 13:26hgbotNote Added: 0173827

Notes
(0173768)
hgbot   
2024-12-31 14:39   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1707 [^]
(0173826)
hgbot   
2025-01-03 13:26   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: 1c861763215e47746127e722f86d6ee488e0dfdb
Author: Cristian Berner <cristian.berner@openbravo.com>
Date: 03-01-2025 12:26:07
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/commit/1c861763215e47746127e722f86d6ee488e0dfdb [^]

Fixes ISSUE-57546: Missing checks in configurable toolbar tables

These fixes have been applied:
- Added proper check for the HIDEIFNOTACCESSIBLETOROLE column in
OBC2_ACTIONGROUP table
- Added triggers for OBC2_ACTIONGROUP and OBC2_TOOLBAR AD_MODULE_ID
columns, to make sure the module is set as in development when doing
changes.
- Changed count to a list with maxResults 1 in
OBC2ToolbarConfigurationEventHandler file
- Changed usages of OBContext.setAdminMode to have the proper boolean
variable set.

---
A src-db/database/model/triggers/OBC2_ACTIONGROUP_MOD_TRG.xml
A src-db/database/model/triggers/OBC2_TOOLBAR_MOD_TRG.xml
M src-db/database/model/tables/OBC2_ACTIONGROUP.xml
M src/org/openbravo/core2/event/OBC2ToolbarConfigurationEventHandler.java
M src/org/openbravo/core2/utility/ConfigurableToolbarUtils.java
---
(0173827)
hgbot   
2025-01-03 13:26   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1707 [^]