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

Add check that default locale is amongst allowed locales list

    XMLWordPrintable

    Details

    • Complexity:
      Low

      Description

      Currently, it is possible for someone to define a different locale, which is not in the allowed locales list. It can lead to certain issues. eg. On concept forms, the locales listed are the ones defined in the allowed locales list global property. This means that, if the default locale is not defined in that list, it will not show. The default locale should always show up on the available locales on the concept form.

      Example issues:
      1. The propose concept feature creates synonyms in the default locale, meaning if the default locale is not in the allowed locales list, these synonyms won't be seen on the concept form since the default locale tabs won't be visible.
      2. If i create/edit a concept where the allowed locales list is blank, a list containing only the default locale is returned, on the concept form we will only see the default locale meaning the new concept name(s) will get created in the default locale. After saving and the user later sets the allowed locales and excludes the default locale, it means the name(s) previously added while the allowed locales list was empty won't be shown on the concept form since the default locale tabs won't be visible.

        Gliffy Diagrams

          Attachments

          1. allowed locales.png
            allowed locales.png
            119 kB
          2. default locale.png
            default locale.png
            139 kB

            Issue Links

              Activity

                People

                Assignee:
                pmuchowski Paweł Muchowski
                Reporter:
                sarmson Sara Armson
                Designated Committer:
                Rafal Korytkowski
                Votes:
                0 Vote for this issue
                Watchers:
                10 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 4 hours Original Estimate - 4 hours
                    4h
                    Remaining:
                    Remaining Estimate - 0 minutes
                    0m
                    Logged:
                    Time Spent - 3 days, 4 hours
                    3d 4h