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

Incorrect message code in Order Validator

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Non-Essential
    • Resolution: Fixed
    • None
    • Core 2.1.0
    • None

    Description

      There is an incorrect message code used in the error message on this line:
      https://github.com/openmrs/openmrs-core/blob/2.0.0-beta/api/src/main/java/org/openmrs/validator/OrderValidator.java#L128

      (The code checks if encounterDatetime is after dateActivated, but if so the message code says the reverse of that: Order.error.dateActivatedAfterEncounterDatetime.)

      The user-displayed message string is correct (i.e. it matches the intent of the code):
      Order.error.dateActivatedAfterEncounterDatetime=Date activated cannot be before that of the associated encounter

      To Do:

      • Change Order.error.dateActivatedAfterEncounterDatetime in OrderValidator.java to Order.error.encounterDatetimeAfterDateActivated
      • Make the same change in all the messages*.properties files in openmrs-core

      (This has no user-visible effect, so we won't backport this from the master branch of code.)

      Gliffy Diagrams

        Attachments

          Activity

            People

              rahulruikar Rahul Ruikar
              darius Darius Jazayeri
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: