Its easy to search city by providing few letters instead of complete name of city.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@792479 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1303,7 +1303,7 @@ public class PartyServices {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user