Fix format filters

This commit is contained in:
drdev
2015-09-06 04:44:28 +00:00
parent 90e4474847
commit db207c1265

View File

@@ -46,7 +46,7 @@ public class AdvancedSearch {
return FModel.getMagicDb().getEditions().get(input.getEdition()); return FModel.getMagicDb().getEditions().get(input.getEdition());
} }
}), }),
CARD_FORMAT("Format", PaperCard.class, FilterOperator.SINGLE_LIST_OPS, new CustomListEvaluator<PaperCard, GameFormat>((List<GameFormat>)FModel.getFormats().getOrderedList()) { CARD_FORMAT("Format", PaperCard.class, FilterOperator.MULTI_LIST_OPS, new CustomListEvaluator<PaperCard, GameFormat>((List<GameFormat>)FModel.getFormats().getOrderedList()) {
@Override @Override
protected GameFormat getItemValue(PaperCard input) { protected GameFormat getItemValue(PaperCard input) {
throw new RuntimeException("getItemValues should be called instead"); throw new RuntimeException("getItemValues should be called instead");
@@ -166,7 +166,7 @@ public class AdvancedSearch {
return input.getPath(); return input.getPath();
} }
}), }),
DECK_FORMAT("Format", DeckProxy.class, FilterOperator.SINGLE_LIST_OPS, new CustomListEvaluator<DeckProxy, GameFormat>((List<GameFormat>)FModel.getFormats().getOrderedList()) { DECK_FORMAT("Format", DeckProxy.class, FilterOperator.MULTI_LIST_OPS, new CustomListEvaluator<DeckProxy, GameFormat>((List<GameFormat>)FModel.getFormats().getOrderedList()) {
@Override @Override
protected GameFormat getItemValue(DeckProxy input) { protected GameFormat getItemValue(DeckProxy input) {
throw new RuntimeException("getItemValues should be called instead"); throw new RuntimeException("getItemValues should be called instead");