Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-5018

defaultLocale property of User is not updated to Context when the user is logged in

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Won't Do
    • None
    • None
    • None
    • None

    Description

      Context.getLocale() method is always returning default locale, even though user is logged in with different locale. The reason being we are not setting the locale on UserContext.
      https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/api/context/UserContext.java#L247

      Please refer to the following test to validate.
      https://github.com/pushpa446/openmrs-core/commit/c4d921eb76e0f44389c95e85d6aafb5663feb292#diff-f525b05001bba2214c502589f8f878c7R243

      Gliffy Diagrams

        Attachments

          Activity

            People

              Unassigned Unassigned
              pushpa446 pushpalatha d
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified