mirror of
https://github.com/gitbucket/gitbucket.git
synced 2025-11-05 04:56:02 +01:00
Fix query condition
This commit is contained in:
@@ -351,11 +351,11 @@ trait IssuesService {
|
|||||||
implicit s: Session
|
implicit s: Session
|
||||||
) =
|
) =
|
||||||
Issues filter { t1 =>
|
Issues filter { t1 =>
|
||||||
if (repos.size == 1) {
|
(if (repos.size == 1) {
|
||||||
((t1.userName === repos.head._1) && (t1.repositoryName === repos.head._2))
|
t1.byRepository(repos.head._1, repos.head._2)
|
||||||
} else {
|
} else {
|
||||||
((t1.userName ++ "/" ++ t1.repositoryName) inSetBind (repos.map { case (owner, repo) => s"$owner/$repo" }))
|
((t1.userName ++ "/" ++ t1.repositoryName) inSetBind (repos.map { case (owner, repo) => s"$owner/$repo" }))
|
||||||
} &&
|
}) &&
|
||||||
(t1.closed === (condition.state == "closed").bind) &&
|
(t1.closed === (condition.state == "closed").bind) &&
|
||||||
(t1.milestoneId.? isEmpty, condition.milestone == Some(None)) &&
|
(t1.milestoneId.? isEmpty, condition.milestone == Some(None)) &&
|
||||||
(t1.priorityId.? isEmpty, condition.priority == Some(None)) &&
|
(t1.priorityId.? isEmpty, condition.priority == Some(None)) &&
|
||||||
|
|||||||
Reference in New Issue
Block a user