plant wise filter
This commit is contained in:
@@ -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() })
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user