Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0054972Openbravo ERP01. General setuppublic2024-03-15 14:312024-05-09 09:22
ngarcia 
AugustoMauch 
urgentmajoralways
closedfixed 
5
 
 
Core
No
0054972: A record in a non editable tab can be deleted by a role if it includes an editable field
A record in a non editable tab can be deleted by a role if it includes an editable field
In any Openbravo environment (only backoffice needed)

Go to Role window and set the User window as editable (Editable = 'Y' in Window access tab) to the current logged in role and the "User - User" tab as non editable (Editable = 'N' in Tab Access subtab)

Log out and log in

Go to User window, check that a record cannot be created. Check as well that existing records cannot be removed, and that none of the fields are editable.

Go back to Role window and add "Username - User - User" field as editable (Editable = 'Y' in Field access subtab)

Log out and log in

Open again the User window and notice that the New Record button is enabled (this is OK as only the username field can be edited), but the Delete current record button is enabled as well, and it should not be
No tags attached.
Issue History
2024-03-15 14:31ngarciaNew Issue
2024-03-15 14:31ngarciaAssigned To => Triage Omni OMS
2024-03-15 14:31ngarciaModules => Core
2024-03-15 14:31ngarciaTriggers an Emergency Pack => No
2024-03-15 14:39aferrazAssigned ToTriage Omni OMS => Triage Platform Base
2024-04-08 12:17AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27779#r27779
2024-04-08 12:17AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27780#r27780
2024-04-08 12:24AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27781#r27781
2024-04-08 12:24AugustoMauchAssigned ToTriage Platform Base => AugustoMauch
2024-04-08 12:24AugustoMauchStatusnew => scheduled
2024-04-08 15:30hgbotNote Added: 0162923
2024-04-08 15:31AugustoMauchStatusscheduled => resolved
2024-04-08 15:31AugustoMauchFixed in SCM revision => https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1186/diffs?commit_id=3d8784a0767e809fbcdea9dfc89e19bb63e2ca73 [^]
2024-04-08 15:31AugustoMauchResolutionopen => fixed
2024-04-12 11:55hgbotStatusresolved => closed
2024-04-12 11:55hgbotFixed in Version => PR24Q3
2024-04-12 11:55hgbotNote Added: 0163148
2024-04-12 11:55hgbotNote Added: 0163149
2024-05-09 09:22hgbotNote Added: 0164354
2024-05-09 09:22hgbotNote Added: 0164355
2024-05-09 09:22hgbotFixed in VersionPR24Q3 => PR23Q4.4
2024-05-09 09:22hgbotNote Added: 0164356

Notes
(0162923)
hgbot   
2024-04-08 15:30   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1186 [^]
(0163148)
hgbot   
2024-04-12 11:55   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1186 [^]
(0163149)
hgbot   
2024-04-12 11:55   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 5b1b3ca32f8b418d226c7626679e7ae270028b3b
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 12-04-2024 09:53:16
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/5b1b3ca32f8b418d226c7626679e7ae270028b3b [^]

Fixes ISSUE-54972: Non-editable tabs should not allow record deletion

Tabs configured to be non-editable should not allow to delete records, even if some of its specific fields can be edited. If some
fields can be edited then it will be possible to edit those rows in existing records, or to create new records if all mandatory
fields are editable

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
---
(0164354)
hgbot   
2024-05-09 09:22   
Merge Request created: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1231 [^]
(0164355)
hgbot   
2024-05-09 09:22   
Merge request merged: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/1231 [^]
(0164356)
hgbot   
2024-05-09 09:22   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/openbravo [^]
Changeset: 2617a4419fc4c8aaf68d0319b96b0c4449fd61fe
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 07-05-2024 15:57:05
URL: https://gitlab.com/openbravo/product/openbravo/-/commit/2617a4419fc4c8aaf68d0319b96b0c4449fd61fe [^]

Fixes ISSUE-54972: Non-editable tabs should not allow record deletion

Tabs configured to be non-editable should not allow to delete records, even if some of its specific fields can be edited. If some
fields can be edited then it will be possible to edit those rows in existing records, or to create new records if all mandatory
fields are editable

---
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-view.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/main/ob-standard-window.js
M modules/org.openbravo.client.application/web/org.openbravo.client.application/js/toolbar/ob-toolbar.js
---