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

Confusing error when trying to edit a concept with names whose locale is not in the locale.allowed.list global property

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Must
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.7.1, OpenMRS 1.8.0
    • Fix Version/s: OpenMRS 1.7.3, OpenMRS 1.8.1
    • Component/s: None
    • Labels:
    • Complexity:
      Low

      Description

      If your concept dictionary database tables include names for locales that are not listed in the 'locale.allowed.list' global property, you'll get some confusing behavior if you try to edit a concept with a name in a non-allowed locale. You won't be able to edit the concept, and you will see the error message "You should only use locales listed among allowed locales"

      Some scenarios where this can easily happen are:

      • You are using the MVP dictionary
      • You have imported concepts from a multi-lingual dictionary using Metadata Sharing
      • You have manually changed the locale.allowed.list property to let people choose fewer locales than your concept dictionary has.

      It is incorrect behavior for our web application to give this error message. Per email discussion (http://openmrs-mailing-list-archives.1560443.n2.nabble.com/Allowed-concept-locales-tp6162308p6162308.html) we've decided on the following solution:

      • ConceptValidator should permit names in non-allowed locales.
      • The edit concept page should show locale tabs for the union of allowed locales + locales the concept currently has a name for

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                wyclif Wyclif Luyima
                Reporter:
                darius Darius Jazayeri
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: