Actions
Defect #32503
closedProject jump box options are not extracted correctly after searching
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Projects
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
Description
Reproduction procedure:
- Step1. Check the options for Project jump box
- Step2. Search by entering keywords on https://redmine_url/search
- Step3. Check the options for Project jump box. You should see different options than when you checked in step1.
Cause:
Both the search keyword input field of the search page and the project jump box input field are elements with name q.
Project jumpbox options are narrowed down based on params[:q]. ( http://www.redmine.org/projects/redmine/repository/entry/trunk/app/helpers/application_helper.rb#L475 )
bookmarked = jump_box.bookmarked_projects(params[:q])
recents = jump_box.recently_used_projects(params[:q])
projects = projects - (recents + bookmarked)
The params[:q] received from the search keyword input field is mistaken for the params[:q] received from the project jump box input field, and the keyword(params[:q]) will narrow down the project jump box options.
related to #31355
Files
Related issues
Actions