Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
07/16/08 12:29:31 (6 months ago)
Author:
bwolfe
Message:

Merging trunk to the 1.3.x branch (sideporting) to get bug fixes into an RC5 release [4745]:[4946]

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/branches/1.3.x/src/api/org/openmrs/api/impl/ConceptServiceImpl.java

    r4531 r4947  
    275275                int size = concepts.size();  
    276276                if (size > 0){ 
    277                         if (size > 1) 
     277                        if (size > 1){ 
    278278                                log.warn("Multiple concepts found for '" + name + "'"); 
     279                                for (Concept c:concepts){ 
     280                                        if (c.getName(Context.getLocale()).getName().compareTo(name) == 0) 
     281                                                return c; 
     282                                } 
     283                        } 
    279284                        return concepts.get(0); 
    280285                }