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

HibernateConceptDAO.getConceptByName() method logs incorrect warning message

    Details

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

      Description

      An incorrect warning is logged when HibernateConceptDAO.getConceptByName() method does NOT find a concept that matches the name. The warning in the log states, "Multiple concepts found for <conceptName>" even though the list that is returned from the query has a size of 0.

      There is an if statement in this method that checks for a list.size() == 1, else, log the above message.

        Attachments

          Activity

            People

            • Assignee:
              mavrk Sanatt Abrol
              Reporter:
              david5780 David Ely
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: