Commit 91942836 by Tuomas Riihimäki

Do not count 'buyable=false' as selectable

1 parent f16445b7
......@@ -206,7 +206,8 @@ public class PlaceFacade extends IntegerPkGenericFacade<Place> {
cb.equal(root.get(Place_.product), product),
cb.isNull(root.get(Place_.releaseTime)),
cb.isNull(root.get(Place_.group)),
cb.isFalse(root.get(Place_.disabled))
cb.isFalse(root.get(Place_.disabled)),
cb.isTrue(root.get(Place_.buyable))
);
return super.getSingleNullableResult(getEm().createQuery(cq));
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!