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

Obs.setValueBoolean should not set value for non boolean concept

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      When a non boolean obs has a valueCoded and setValueBoolean is called, it overwrites its value. This should not happen because the setValueBoolean method description clearly states that:

      Sets the value of this obs to the specified valueBoolean if this obs has a boolean concept.
      

      This led to the failure of ObsTest.isDirty() when apache commons-beanutils was upgraded from 1.7.0 to 1.9.3
      Details can be found in the link to the Talk Discussion.

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                dkayiwa Daniel Kayiwa
                dkayiwa Daniel Kayiwa
                Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: