mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
Fix that bookmarked and recently used projects are unexpectedly filtered by a search keyword after full-text search (#31355, #32503).
Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19325 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -477,8 +477,9 @@ module ApplicationHelper
|
||||
|
||||
def render_projects_for_jump_box(projects, selected=nil)
|
||||
jump_box = Redmine::ProjectJumpBox.new User.current
|
||||
bookmarked = jump_box.bookmarked_projects(params[:q])
|
||||
recents = jump_box.recently_used_projects(params[:q])
|
||||
query = params[:q] if request.format.js?
|
||||
bookmarked = jump_box.bookmarked_projects(query)
|
||||
recents = jump_box.recently_used_projects(query)
|
||||
projects = projects - (recents + bookmarked)
|
||||
projects_label = (bookmarked.any? || recents.any?) ? :label_optgroup_others : :label_project_plural
|
||||
jump = params[:jump].presence || current_menu_item
|
||||
|
||||
Reference in New Issue
Block a user