Allow canceling when selecting values

This commit is contained in:
drdev
2015-09-06 02:04:08 +00:00
parent 717431b547
commit 225f39f3ba

View File

@@ -588,7 +588,11 @@ public class AdvancedSearch {
if (operator == null) { return editFilter; }
final String message = option.name + " " + operator.caption + " ?";
return (Filter<T>)option.evaluator.createFilter(message, option, operator);
Filter<T> filter = (Filter<T>)option.evaluator.createFilter(message, option, operator);
if (filter == null) {
filter = editFilter;
}
return filter;
}
public static class Filter<T extends InventoryItem> {