Downloads Documentation Community Contribute Demo






Show Sidebar
Login | Register
Show
Ignore:
Timestamp:
08/28/08 12:58:48 (3 months ago)
Author:
bwolfe
Message:

Readded additional patient identifier search back to the generic person dwr searches - #689

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • openmrs/trunk/src/api/org/openmrs/api/db/hibernate/HibernatePatientDAO.java

    r5094 r5381  
    212212                                else if (regex.equals("") || HibernateUtil.isHSQLDialect(sessionFactory)) { 
    213213                                String prefix = adminService.getGlobalProperty(OpenmrsConstants.GLOBAL_PROPERTY_PATIENT_IDENTIFIER_PREFIX, ""); 
    214                                         String suffix = adminService.getGlobalProperty(OpenmrsConstants.GLOBAL_PROPERTY_PATIENT_IDENTIFIER_SUFFIX, ""); 
     214                                        String suffix = adminService.getGlobalProperty(OpenmrsConstants.GLOBAL_PROPERTY_PATIENT_IDENTIFIER_SUFFIX, "%"); 
    215215                                StringBuffer likeString = new StringBuffer(prefix).append(identifier) 
    216216                                                                                  .append(suffix);