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

Short patient form should display Relationships only if the showRelationships GP is set to true

    Details

    • Complexity:
      Low

      Description

      Relationships should not be displayed on the short patient form when the "new_patient_form.showRelationships" global property is not set or is set to a value of false.

      To reproduce this, set the global property named "newPatientForm.relationships" to a value like: 1a,1b,2a,2b,3a,3b,4a,4b
      Then set the global property named "new_patient_form.showRelationships" to a value of false, or simply leave it empty.
      Search for a patient. Ensure that he or she has some relationships by adding a few as necessary using the "Overview" tab of the patient dashboard.
      Go to the "Demographics" tab and click the "Edit this Patient (Short Form)" link.
      You will be taken to the short patient form and see that relationships are displayed yet they are not supposed to be because of the value for the "new_patient_form.showRelationships" global property.

      So i think the fix should be to add a check for the global property's value in the "shortPatientForm.jsp"

        Attachments

          Activity

            People

            • Assignee:
              lluismf Lluis Martinez [X] (Inactive)
              Reporter:
              wyclif Wyclif Luyima
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 30 minutes Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour
                1h