From 508bcf20d12b0c1abce8515e4adb3d29d753edd3 Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Mon, 15 Jan 2024 05:00:20 +0100 Subject: [PATCH] IDEMPIERE-5888 - solve login issue for users with single client not saving preferences (#2191) --- .../WEB-INF/src/org/adempiere/webui/panel/RolePanel.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/RolePanel.java b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/RolePanel.java index 47d05dfce2..f6b64191b7 100644 --- a/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/RolePanel.java +++ b/org.adempiere.ui.zk/WEB-INF/src/org/adempiere/webui/panel/RolePanel.java @@ -498,8 +498,7 @@ public class RolePanel extends Window implements EventListener, Deferrabl Comboitem lstItemClient = lstClient.getSelectedItem(); if (lstItemClient != null) { - if (lstClient.getChildren().size() > 1) // load the preference was postponed until client selected - userPreference.loadPreference(Env.getContextAsInt(m_ctx, Env.AD_USER_ID)); + userPreference.loadPreference(Env.getContextAsInt(m_ctx, Env.AD_USER_ID)); // initial role String initDefault = userPreference.getProperty(UserPreference.P_ROLE);