diff options
author | Fatih Acet <acetfatih@gmail.com> | 2016-12-21 17:22:58 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2016-12-21 17:22:58 +0300 |
commit | 6c774f49fc8ee2c150bb7469e15d1efac793bded (patch) | |
tree | 30f82f6d6082e0abd4dd7ab7b3d726c74fdca17b /app/views | |
parent | 7e88b242ce194958c6a59755eb434c17625c4395 (diff) | |
parent | 804198ab7f1bdd854c64da729a04fc65f2b6ff7d (diff) |
Merge branch '25561-maintain-milestone-filter-param' into 'master'
Prevent erasing Milestone filter when updating other filters
Closes #25561
See merge request !8117
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/shared/issuable/_milestone_dropdown.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/shared/issuable/_milestone_dropdown.html.haml b/app/views/shared/issuable/_milestone_dropdown.html.haml index 40fe53e6a8d..415361f8fbf 100644 --- a/app/views/shared/issuable/_milestone_dropdown.html.haml +++ b/app/views/shared/issuable/_milestone_dropdown.html.haml @@ -3,7 +3,7 @@ - show_menu_above = show_menu_above || false - selected_text = selected.try(:title) || params[:milestone_title] - dropdown_title = local_assigns.fetch(:dropdown_title, "Filter by milestone") -- if selected.present? +- if selected.present? || params[:milestone_title].present? = hidden_field_tag(name, name == :milestone_title ? selected_text : selected.id) = dropdown_tag(milestone_dropdown_label(selected_text), options: { title: dropdown_title, toggle_class: "js-milestone-select js-filter-submit #{extra_class}", filter: true, dropdown_class: "dropdown-menu-selectable dropdown-menu-milestone", placeholder: "Search milestones", footer_content: project.present?, data: { show_no: true, show_menu_above: show_menu_above, show_any: show_any, show_upcoming: show_upcoming, field_name: name, selected: selected.try(:title), project_id: project.try(:id), milestones: milestones_filter_dropdown_path, default_label: "Milestone" } }) do |