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

Can't save concepts with two new concept reference terms

    Details

    • Complexity:
      Low

      Description

      On importing a metadata package, I have a Concept to import that has 2 new Concept Mappings that refer to 2 new Concept Reference Terms. Because both of these concept reference terms are null, they both have a primary key id of null.

      However, the result is that this fails validation in the ConceptValidator due to the following code block:

      for (ConceptMap map : conceptToValidate.getConceptMappings()) {
         ...
         if (!mappedTermIds.add(map.getConceptReferenceTerm().getId())) {
      	errors.rejectValue("conceptMappings[" + index + "]", "ConceptReferenceTerm.term.alreadyMapped", "Cannot map a reference term multiple times to the same concept");
           }
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bwolfe Ben Wolfe
                Reporter:
                mseaton Mike Seaton
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1 hour, 30 minutes
                  1h 30m
                  Remaining:
                  Remaining Estimate - 1 hour, 30 minutes
                  1h 30m
                  Logged:
                  Time Spent - Not Specified
                  Not Specified