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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Must
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.7.3, OpenMRS 1.8.3, OpenMRS 1.9.1, Platform 1.10.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      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

              Attachments-Category-Modification

                Activity

                  People

                  • Assignee:
                    mogoodrich Mark Goodrich
                    Reporter:
                    mogoodrich Mark Goodrich
                    Watchers:
                    Ben Wolfe, Janet Riley, Mark Goodrich
                  • Votes:
                    0 Vote for this issue
                    Watchers:
                    3 Start watching this issue

                    Dates

                    • Created:
                      Updated:
                      Resolved: