summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2016-10-14 11:15:44 +0100
committerPhil Hughes <me@iamphill.com>2016-10-14 11:15:44 +0100
commit8710cdf57d4160685071a44dc225cb02865634e2 (patch)
tree96a07621ea71cd2d8e18c40c483c244caa3fff14
parentd1a7b35b167b747a4794110dc1354200fd6dc592 (diff)
downloadgitlab-ce-issuable-title-dropdown-fix.tar.gz
Use local assigns to get the dropdown titleissuable-title-dropdown-fix
-rw-r--r--app/views/shared/issuable/_milestone_dropdown.html.haml2
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 b85e2c11ff0..f27a9002ec2 100644
--- a/app/views/shared/issuable/_milestone_dropdown.html.haml
+++ b/app/views/shared/issuable/_milestone_dropdown.html.haml
@@ -2,7 +2,7 @@
- extra_class = extra_class || ''
- show_menu_above = show_menu_above || false
- selected_text = selected.try(:title)
-- dropdown_title = dropdown_title || "Filter by milestone"
+- dropdown_title = local_assigns.fetch(:dropdown_title, "Filter by milestone")
- if selected.present?
= hidden_field_tag(name, name == :milestone_title ? selected.title : 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",