Skip to:
The batchLogin method of Login class (org.compiere.util.Login) has an error when it calls getOrgs
// OrganizationString org = Ini.getProperty(Ini.P_ORG);KeyNamePair[] orgs = getOrgs(clientPP);
getOrgs needs of the rolePP argument instead of clientPP
KeyNamePair[] orgs = getOrgs(rolePP);
This was solved with commithttps://bitbucket.org/idempiere/idempiere/commits/b8434ba
Thanks Matteo, you're right batchLogin is using the old deprecated method of login (i.e. using deprecated getRoles).
It needs to be refactored to the iDempiere way:getClients(user, pwd)getRoles(user, client)getOrgs(role)
Regards,
Carlos Ruiz
The batchLogin method of Login class (org.compiere.util.Login) has an error when it calls getOrgs
// Organization
String org = Ini.getProperty(Ini.P_ORG);
KeyNamePair[] orgs = getOrgs(clientPP);
getOrgs needs of the rolePP argument instead of clientPP
KeyNamePair[] orgs = getOrgs(rolePP);