Openbravo Issue Tracking System - Openbravo ERP | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0054337 | Openbravo ERP | A. Platform | public | 2024-01-12 15:13 | 2024-01-18 17:34 | ||||||||||||||
Reporter | caristu | ||||||||||||||||||
Assigned To | ablasco | ||||||||||||||||||
Priority | urgent | Severity | minor | Reproducibility | have not tried | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | |||||||||||||||||||
Target Version | Fixed in Version | PR24Q2 | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | |||||||||||||||||||
OBNetwork customer | |||||||||||||||||||
Web browser | |||||||||||||||||||
Modules | Core | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | |||||||||||||||||||
Regression date | 2023-10-17 | ||||||||||||||||||
Regression introduced in release | |||||||||||||||||||
Regression introduced by commit | https://gitlab.com/openbravo/product/openbravo/-/commit/276992c1ff21c2babfa16573c66be987965afdd2 [^] | ||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0054337: Some computed column fields are displayed as editable for automatic roles | ||||||||||||||||||
Description | Fields backed by computed columns and not explicitly marked as read only are displayed as editable for automatic roles. By definition, this kind of fields must always be displayed as read only. Note: this issue can be easily workarounded by explicitly marking the field as read only | ||||||||||||||||||
Steps To Reproduce | 1) Create a computed column[1]. Leave the column definition as updateable. 2) Create a field for the new computed column. Do not explicitly mark it as read only, it should not be necessary 3) Access to the window with the new field, with an automatic role. Note that the computed column is displayed as non read only. [1] http://wiki.openbravo.com/wiki/How_to_create_a_Computed_Column [^] | ||||||||||||||||||
Proposed Solution | The source of the problem is here[1]. Now that code is causing the getFieldLevelRoles method to be executed always when accessing to a window with an automatic role. This did not happen before. It must be checked if this is correct or not. If the previous is correct, one possible solution could be just to add here[2] this check: field.getColumn().getSqllogic() == null [1] https://gitlab.com/openbravo/product/openbravo/-/blob/master/modules/org.openbravo.client.application/src/org/openbravo/client/application/WindowSettingsActionHandler.java#L172 [^] [2] https://gitlab.com/openbravo/product/openbravo/-/blob/master/modules/org.openbravo.client.application/src/org/openbravo/client/application/WindowSettingsActionHandler.java#L209 [^] | ||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | |||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2024-01-12 15:13 | caristu | New Issue | |||||||||||||||||
2024-01-12 15:13 | caristu | Assigned To | => Triage Platform Base | ||||||||||||||||
2024-01-12 15:13 | caristu | Modules | => Core | ||||||||||||||||
2024-01-12 15:13 | caristu | Triggers an Emergency Pack | => No | ||||||||||||||||
2024-01-12 15:19 | caristu | Proposed Solution updated | |||||||||||||||||
2024-01-12 15:20 | caristu | Relationship added | caused by 0053408 | ||||||||||||||||
2024-01-12 15:23 | caristu | Regression date | => 2023-10-17 | ||||||||||||||||
2024-01-12 15:23 | caristu | Regression introduced by commit | => https://gitlab.com/openbravo/product/openbravo/-/commit/276992c1ff21c2babfa16573c66be987965afdd2 [^] | ||||||||||||||||
2024-01-12 15:24 | caristu | Description Updated | bug_revision_view_page.php?rev_id=27339#r27339 | ||||||||||||||||
2024-01-12 15:34 | caristu | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=27341#r27341 | ||||||||||||||||
2024-01-16 08:47 | hgbot | Note Added: 0159345 | |||||||||||||||||
2024-01-16 10:00 | cberner | Status | new => scheduled | ||||||||||||||||
2024-01-16 10:00 | cberner | Assigned To | Triage Platform Base => ablasco | ||||||||||||||||
2024-01-18 17:34 | hgbot | Resolution | open => fixed | ||||||||||||||||
2024-01-18 17:34 | hgbot | Status | scheduled => closed | ||||||||||||||||
2024-01-18 17:34 | hgbot | Fixed in Version | => PR24Q2 | ||||||||||||||||
2024-01-18 17:34 | hgbot | Note Added: 0159490 | |||||||||||||||||
2024-01-18 17:34 | hgbot | Note Added: 0159491 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|