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

Scheduled orders cannot be discontinued

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Must
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Platform 2.0.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      When discontinuing an order, the API checks if it's active, in 2.0 the logic in Order.isActive() was changed to first check if an order is started but Order.started() returns false for a scheduled order so discontinuing it becomes impossible.

      commit where the bug was introduced: https://github.com/openmrs/openmrs-core/commit/d65825b685453515f55e30504e9cd92ebaa3f759
      see removal of deprecated isFuture() and its replacement with isStarted(checkDate) in isActive(checkDate)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                teleivo Ivo Ulrich
                Reporter:
                wyclif Wyclif Luyima
                Designated Committer:
                Darius Jazayeri [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: