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

Odd change to message set as a void reason when saving an obs

    Details

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

      Description

      When saving an obs, the API automatically voids the existing obs and creates a new obs. It is required that you specify a void reason when saving an obs.

      In 1.8, the void reason was created by taking the void reason provided by the user and adding the id of the new obs, like this:

      String reason = changeMessage + " (new obsId: " + newObs.getObsId() + ")";

      However, in 1.9.x, some new text, "voidReason looks like" is added into the string (without spaces a buffer):

      String reason = changeMessage + "voidReason looks like" + " (new obsId: " + newObs.getObsId() + ")";

      Was there a reason for this?

        Attachments

          Activity

            People

            • Assignee:
              patandrea Andrea Patterson [X] (Inactive)
              Reporter:
              mogoodrich Mark Goodrich
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified