Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0037282Openbravo ERPA. Platformpublic2017-11-13 10:582017-11-16 10:14
Production - QA Approved
3.0PR17Q3 [^]
0037282: Deactivated roles are displayed in the role dropdown of user section
The deactivated roles are displayed in the dropdown of roles availables to the user.
1. Login as "F&B International Group Admin" role with "Openbravo" user.
2. Go to [User] window and select Openbravo user.
3. Go to [User Roles] subtab and deactivated a role.(e.g. "F&B US, Inc. - Employee").
4. Do logout and login with previous user.
5. Open [User profile widget] and open the role dropdown.
  --> Check than deactivated rol is shown.
No tags attached.
blocks defect 0037278 closed inigosanchez Deactivated roles are displayed in the role dropdown of user section 
Issue History
2017-11-13 13:29inigosanchezTypedefect => backport
2017-11-13 13:29inigosanchezTarget Version => 3.0PR17Q3.2
2017-11-14 13:54inigosanchezReview Assigned To => caristu
2017-11-14 13:55hgbotCheckin
2017-11-14 13:55hgbotNote Added: 0100515
2017-11-14 13:55hgbotStatusscheduled => resolved
2017-11-14 13:55hgbotResolutionopen => fixed
2017-11-14 13:55hgbotFixed in SCM revision => [^]
2017-11-16 10:14caristuNote Added: 0100544
2017-11-16 10:14caristuStatusresolved => closed
2017-11-16 10:14caristuFixed in Version => 3.0PR17Q3.2

2017-11-14 13:55   
Repository: erp/backports/3.0PR17Q3.2
Changeset: 9dabe71e3267735a56e4273d024b1ef715eb1807
Author: Inigo Sanchez <inigo.sanchez <at>>
Date: Tue Nov 14 13:55:33 2017 +0100
URL: [^]

Fixed issue 37282: Deactivated roles are displayed in the user profile widget

The problem was caused by the "Improve scalability of the login process" project. When improving the
performance of the query that return the complete role list for the current user, the OBQuery instance
used to generate it was replaced with a Query instance. The first includes by default the filter by
is active.

To fix the problem this filter must be added manually in the query. Now the problem has been resolved
by take into account this filter.

M modules/org.openbravo.client.application/src/org/openbravo/client/application/navigationbarcomponents/
2017-11-16 10:14   
Code reviewed + tested OK.