Author: ashish
Date: Thu Jul 9 10:15:14 2009
New Revision: 792479
URL:
http://svn.apache.org/viewvc?rev=792479&view=revLog:
Its easy to search city by providing few letters instead of complete name of city.
Modified:
ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java
Modified: ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java?rev=792479&r1=792478&r2=792479&view=diff==============================================================================
--- ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java (original)
+++ ofbiz/trunk/applications/party/src/org/ofbiz/party/party/PartyServices.java Thu Jul 9 10:15:14 2009
@@ -1303,7 +1303,7 @@
String city = (String) context.get("city");
if (city != null && city.length() > 0) {
paramList = paramList + "&city=" + city;
- andExprs.add(EntityCondition.makeCondition(EntityFunction.UPPER_FIELD("city"), EntityOperator.EQUALS, EntityFunction.UPPER(city)));
+ andExprs.add(EntityCondition.makeCondition(EntityFunction.UPPER_FIELD("city"), EntityOperator.LIKE, EntityFunction.UPPER("%" + city + "%")));
}
// filter on state geo