IDEMPIERE-3449 - fix login failing when the role in preferences doesn't have any org accessible for the user going into the system

This commit is contained in:
Carlos Ruiz 2017-09-07 19:32:33 +02:00
parent a9330bf75d
commit e3690e803b
1 changed files with 8 additions and 0 deletions

View File

@ -143,6 +143,14 @@ public class RolePanel extends Window implements EventListener<Event>, Deferrabl
this.setId("rolePanel");
this.setSclass("login-box");
if (! m_show) {
// check if all mandatory fields are ok to not show
if ( lstRole.getSelectedItem() == null || lstRole.getSelectedItem().getValue() == null
|| lstClient.getSelectedItem() == null || lstClient.getSelectedItem().getValue() == null
|| lstOrganisation.getSelectedItem() == null || lstOrganisation.getSelectedItem().getValue() == null) {
m_show = true;
}
}
if (m_show) {
AuFocus auf = null;
if (lstClient.getItemCount() > 1) {