plant wise filter
This commit is contained in:
parent
e68b24b557
commit
cad5a647f1
@ -121,7 +121,7 @@ fun <T> applyPlantFilter(q: io.ebean.ExpressionList<T>, vids: List<Long>?) {
|
||||
if (vids.isNullOrEmpty()) {
|
||||
q.`in`("unloadingPlantId", Session.currentUserPlants().map { it.plantId })
|
||||
} else {
|
||||
q.`in`("unloadingPlantId", vids)
|
||||
q.`in`("unloadingPlantId", vids.map { it.toString() })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user