Commit 16befe42 by Antti Tonkyra

re-add enabled check

1 parent 2dd9952d
......@@ -112,6 +112,8 @@ public class PrintedCardFacade extends IntegerPkGenericFacade<PrintedCard> {
if (state.length > 0) {
preds.add(root.get(PrintedCard_.cardState).in(Arrays.asList(state)));
}
preds.add(cb.equal(root.get(PrintedCard_.enabled), true));
cq.where(preds.toArray(new Predicate[preds.size()]));
cq.orderBy(cb.asc(root.get(PrintedCard_.user)), cb.asc(root.get(PrintedCard_.template).get(CardTemplate_.power)));
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!