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

ConceptService getConceptsByMapping should only return distinct concepts

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • core 2.6.1, Core 2.7.0, Core 2.5.11
    • None
    • None

    Description

      Currently, if a Concept has 2 mapping terms to the same Concept Source, which have the same text but differ in casing, the ConceptService.getConceptsByMapping method will return a List of size 2, with the same concept returned twice.  This should be fixed such that only distinct concepts are returned.

      I noticed this due to some things that started failing in my 2.5.x environment after this was backported here:

      https://github.com/openmrs/openmrs-core/commit/bcfcaf99aeee0cf1b5c4ce7a793e92a0c97ed70a

      Gliffy Diagrams

        Attachments

          Activity

            People

              mseaton Mike Seaton
              mseaton Mike Seaton
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: