Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0044249Openbravo ERPB. User interfacepublic2020-06-01 13:592020-06-15 13:37
leyre-iriarte 
cberner 
highmajoralways
closedfixed 
5
3.0PR20Q1 
PR20Q3 
alostale
Query/List widget
No
0044249: Error appears when role does not have widgets
When I switch to a role without widgets, I get an error.
Looking at the code, in MyOpenbravoComponent.java the list of widgets (Line 338) is empty.
By default the access of the widgets for any role is
"allow_anonymous_access = N".
1.Create a role without widgets.
2.Switch to that role.
See diff on attachments .
No tags attached.
diff Issue_role_none_Widget.diff (1,236) 2020-06-01 13:59
https://issues.openbravo.com/file_download.php?file_id=14559&type=bug
Issue History
2020-06-01 13:59leyre-iriarteNew Issue
2020-06-01 13:59leyre-iriarteAssigned To => platform
2020-06-01 13:59leyre-iriarteFile Added: Issue_role_none_Widget.diff
2020-06-01 13:59leyre-iriarteModules => Query/List widget
2020-06-01 13:59leyre-iriarteResolution time => 1592172000
2020-06-01 13:59leyre-iriarteTriggers an Emergency Pack => No
2020-06-01 14:05leyre-iriartePrioritylow => high
2020-06-01 14:05leyre-iriarteSeverityminor => major
2020-06-01 14:05leyre-iriarteDescription Updatedbug_revision_view_page.php?rev_id=21130#r21130
2020-06-09 10:19cbernerAssigned Toplatform => cberner
2020-06-09 10:19cbernerStatusnew => scheduled
2020-06-09 10:19cbernerNote Added: 0120758
2020-06-12 10:27hgbotCheckin
2020-06-12 10:27hgbotNote Added: 0120820
2020-06-12 10:27hgbotStatusscheduled => resolved
2020-06-12 10:27hgbotResolutionopen => fixed
2020-06-12 10:27hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/050377783ee0ee76863cdee011f9735e8bfd5271 [^]
2020-06-12 11:24alostaleReview Assigned To => alostale
2020-06-12 11:24alostaleStatusresolved => closed
2020-06-12 11:24alostaleFixed in Version => 3.0PR20Q3
2020-06-15 13:37hgbotCheckin
2020-06-15 13:37hgbotNote Added: 0120848
2020-06-15 13:41alostaleNote Deleted: 0120848

Notes
(0120758)
cberner   
2020-06-09 10:19   
Merge Request: https://gitlab.com/openbravo/product/openbravo/-/merge_requests/82 [^]
(0120820)
hgbot   
2020-06-12 10:27   
Repository: erp/devel/pi
Changeset: 050377783ee0ee76863cdee011f9735e8bfd5271
Author: Cristian Berner <cristian.berner <at> openbravo.com>
Date: Tue Jun 09 10:15:10 2020 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/050377783ee0ee76863cdee011f9735e8bfd5271 [^]

Fixes ISSUE-44249: Fix error when loging as user without access to any widget

When loging as a user with no access to any widget an error appeared
with an alert popping up.
- As a fix, a check if there's no access to any widget is made and if so,
widget instances aren't retrieved for that user.

---
M modules/org.openbravo.client.myob/src/org/openbravo/client/myob/MyOpenbravoComponent.java
---