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

Creating concept mappings fails with legacy code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.9.0, Platform 1.10.0
    • Fix Version/s: OpenMRS 1.9.0, Platform 1.10.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      The following code written against 1.6 should not fail in 1.9:

      Concept concept = Context.getConceptService().getConcept(1);
      ConceptMap conceptMap = new ConceptMap();
      conceptMap.setConcept(concept);
      conceptMap.setSource(Context.getConceptService().getConceptSource(1));
      conceptMap.setSourceCode(concept.getId().toString());
      
      concept.addConceptMapping(conceptMap);
      Context.getConceptService().saveConcept(concept);
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              raff Rafal Korytkowski
              Reporter:
              raff Rafal Korytkowski
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: