Commit 9c6ad612 authored by Matija Obreza's avatar Matija Obreza

Fixed "Not in SGSV" filter

parent cc97e931
......@@ -183,7 +183,11 @@ public class AccessionFilter extends UuidModelFilter<AccessionFilter, Accession>
}
// TODO Do we have to change this?
if (sgsv != null) {
and.and(accession.accessionId.duplSite.any().eq("NOR051"));
if (sgsv == Boolean.TRUE) {
and.and(accession.accessionId.duplSite.any().eq("NOR051"));
} else {
and.andNot(accession.accessionId.duplSite.any().eq("NOR051"));
}
}
if (images != null) {
if (images == Boolean.TRUE) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment