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

"true" and "false" concepts loaded improperly in ConceptServiceImpl

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Must
    • Resolution: Fixed
    • OpenMRS 1.7.3, OpenMRS 1.8.3, OpenMRS 1.9.1, Platform 1.10.0
    • None
    • None

    Description

      The designated concept id for "true" and "false" are stored as global properties within the system. The ConceptServiceImpl has two static variables, trueConcept and falseConcept, that stores these "true" and "false" concepts.

      However, instead of loading the true and false concepts from the DB, ConceptServiceImpl initializes trueConcept and falseConcept by creating dummy concepts initialized with the appropriate concept ids. Therefore the trueConcept and falseConcept variables get random uuids, not the uuids of the underlying concepts. This is problematic--for one, starting in OpenMRS 1.9 object comparsions are done using uuids, so someObs.getValueAsBoolean() will always return null.

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                mogoodrich Mark Goodrich
                mogoodrich Mark Goodrich
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: