From 6929edabb90ab9111e5ec432d7d5df36516f6972 Mon Sep 17 00:00:00 2001 From: Andreas Svanberg Date: Sun, 23 Feb 2025 20:28:02 +0100 Subject: [PATCH] Change magic number since -2 has some internal meaning --- models/db/search.go | 4 ++-- templates/repo/issue/filter_item_user_assign.tmpl | 6 +++--- templates/repo/issue/filter_list.tmpl | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/models/db/search.go b/models/db/search.go index fa72959fa5..6e82be6709 100644 --- a/models/db/search.go +++ b/models/db/search.go @@ -32,8 +32,8 @@ const NoConditionID int64 = -1 // AnyConditionID means a condition to filter the records which match any id. // The inverse of the above NoConditionID -// eg: "assignee_id=-2" means "find the issues with an assignee" -const AnyConditionID int64 = -2 +// eg: "assignee_id=-1000001" means "find the issues with an assignee" +const AnyConditionID int64 = -1000001 // NonExistingID means a condition to match no result (eg: a non-existing user) // It doesn't use -1 or -2 because they are used as builtin users. diff --git a/templates/repo/issue/filter_item_user_assign.tmpl b/templates/repo/issue/filter_item_user_assign.tmpl index dd5d96319a..028a0bfca5 100644 --- a/templates/repo/issue/filter_item_user_assign.tmpl +++ b/templates/repo/issue/filter_item_user_assign.tmpl @@ -6,7 +6,7 @@ * TextFilterTitle * TextZeroValue: the text for "all issues" * TextNegativeOne: the text for "issues with no assignee" -* TextNegativeTwo: the text for "issues with any assignee" +* TextAnyCondition: the text for "issues with any assignee" */}} {{$queryLink := .QueryLink}}