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

HibernateOrderDAO exception uses wrong message code

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Core 2.1.0
    • Component/s: None
    • Labels:
      None

      Description

      HibernateOrderDAO has a whitespace in one of its exceptions message codes.

      see https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/api/db/hibernate/HibernateOrderDAO.java#L262

      This leads to the exception message not getting translated.

      Additionally there is some left over code, searchCriteria that is never used:
      https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/api/db/hibernate/HibernateOrderDAO.java#L256-L257

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              teleivo Ivo Ulrich
              Reporter:
              teleivo Ivo Ulrich
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: