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

    Details

    • Type: Bug
    • Status: Waiting on Information
    • Priority: Should
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Complexity:
      S

      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

            Attachments-Category-Modification

              Activity

                People

                • Assignee:
                  Unassigned
                  Reporter:
                  pushpa446 pushpalatha d
                  Watchers:
                  Daniel Kayiwa, Darius Jazayeri, pushpalatha d, Shashikanth Gadgay, Wyclif Luyima
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Time Tracking

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