diff options
author | Go MAEDA <maeda@farend.jp> | 2023-04-05 23:36:18 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-04-05 23:36:18 +0000 |
commit | 972e51bc89d6043b987703364ce4726624da8e0e (patch) | |
tree | 657dcc6793928c81a50b3eef14b8ec382f3721a9 /app/models/issue_query.rb | |
parent | 27b8f57fd8c7e8b1279b483128edbdcc9723be49 (diff) | |
download | redmine-972e51bc89d6043b987703364ce4726624da8e0e.tar.gz redmine-972e51bc89d6043b987703364ce4726624da8e0e.zip |
Change the behavior of the "Any searchable text" filter from OR search to AND search (#38402).
Patch by Go MAEDA.
git-svn-id: https://svn.redmine.org/redmine/trunk@22169 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_query.rb')
-rw-r--r-- | app/models/issue_query.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue_query.rb b/app/models/issue_query.rb index e45548121..68ce1c104 100644 --- a/app/models/issue_query.rb +++ b/app/models/issue_query.rb @@ -792,7 +792,7 @@ class IssueQuery < Query end fetcher = Redmine::Search::Fetcher.new( - question, User.current, ['issue'], projects, attachments: '0' + question, User.current, ['issue'], projects, all_words: (operator != '!~'), attachments: '0' ) ids = fetcher.result_ids.map(&:last) if ids.present? |