IDEMPIERE-5888 - solve login issue for users with single client not saving preferences (#2191)
This commit is contained in:
parent
c9235a02b4
commit
508bcf20d1
|
@ -498,8 +498,7 @@ public class RolePanel extends Window implements EventListener<Event>, Deferrabl
|
||||||
Comboitem lstItemClient = lstClient.getSelectedItem();
|
Comboitem lstItemClient = lstClient.getSelectedItem();
|
||||||
if (lstItemClient != null)
|
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
|
// initial role
|
||||||
String initDefault = userPreference.getProperty(UserPreference.P_ROLE);
|
String initDefault = userPreference.getProperty(UserPreference.P_ROLE);
|
||||||
|
|
Loading…
Reference in New Issue