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

Scheduled orders cannot be discontinued

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Must
    • Resolution: Fixed
    • None
    • Platform 2.0.0
    • None
    • None

    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)

      Gliffy Diagrams

        Attachments

          Issue Links

            Activity

              People

                teleivo Ivo Ulrich
                wyclif Wyclif Luyima
                Darius Jazayeri Darius Jazayeri
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: