Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
7.0.0 M3
-
6.2.x
-
Committed
-
6
Description
StateObjectStateException is reproducible with the following test case. (It will be added to CompanyLocalServiceTest in the 1st commit of my PR)
public void testUpdateDisplay() throws Exception { Company company = addCompany(); long companyId = company.getCompanyId(); User user = UserLocalServiceUtil.getDefaultUser(companyId); user.setFirstName(StringUtil.randomString()); UserLocalServiceUtil.updateUser(user); CompanyLocalServiceUtil.updateDisplay(companyId, "hu", "CET"); user = UserLocalServiceUtil.getDefaultUser(companyId); Assert.assertEquals("hu", user.getLanguageId()); Assert.assertEquals("CET", user.getTimeZoneId()); }