Skip to content

Commit

Permalink
set the default of isGlobal to true
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinBeczak committed Feb 6, 2025
1 parent 173cdf3 commit 5b85891
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ trait SearchParametersMixin {
* challengeParams.global value is true
*/
def filterChallengeGlobal(params: SearchParameters): FilterGroup = {
if (params.challengeParams.global.getOrElse("false") == "false") {
if (params.challengeParams.global.getOrElse("true") == "false") {
FilterGroup(
List(
FilterParameter.conditional(
Expand Down
2 changes: 1 addition & 1 deletion app/org/maproulette/models/dal/ChallengeDAL.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1867,7 +1867,7 @@ class ChallengeDAL @Inject() (
this.appendInWhereClause(whereClause, s"c.is_archived = false")
}

if (searchParameters.challengeParams.global.getOrElse(false) == false) {
if (searchParameters.challengeParams.global.getOrElse(true) == false) {
this.appendInWhereClause(whereClause, s"c.is_global = false")
}

Expand Down

0 comments on commit 5b85891

Please sign in to comment.