Changeset 5183 for openmrs/branches/data_synchronization_bidirectional/src/api/org/openmrs/api/impl/ConceptServiceImpl.java
- Timestamp:
- 08/06/08 17:17:55 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
openmrs/branches/data_synchronization_bidirectional/src/api/org/openmrs/api/impl/ConceptServiceImpl.java
r4969 r5183 280 280 int size = concepts.size(); 281 281 if (size > 0){ 282 if (size > 1) 282 if (size > 1){ 283 283 log.warn("Multiple concepts found for '" + name + "'"); 284 for (Concept c:concepts){ 285 if (c.getName(Context.getLocale()).getName().compareTo(name) == 0) 286 return c; 287 } 288 } 284 289 return concepts.get(0); 285 290 }