summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/versions/_sidebar.html.erb2
-rw-r--r--test/functional/versions_controller_test.rb3
2 files changed, 4 insertions, 1 deletions
diff --git a/app/views/versions/_sidebar.html.erb b/app/views/versions/_sidebar.html.erb
index 0eb517c24..aecb7d131 100644
--- a/app/views/versions/_sidebar.html.erb
+++ b/app/views/versions/_sidebar.html.erb
@@ -1,9 +1,9 @@
<%= form_tag({}, :method => :get) do %>
+<%= hidden_field_tag "tracker_ids[]", nil, :id => nil %>
<h3><%= l(:label_roadmap) %></h3>
<ul>
<% @trackers.each do |tracker| %>
<li>
- <%= hidden_field_tag "tracker_ids[]", nil, :id => nil %>
<label>
<%= check_box_tag("tracker_ids[]", tracker.id,
(@selected_tracker_ids.include? tracker.id.to_s),
diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb
index 80e51880e..fdd767560 100644
--- a/test/functional/versions_controller_test.rb
+++ b/test/functional/versions_controller_test.rb
@@ -45,6 +45,9 @@ class VersionsControllerTest < Redmine::ControllerTest
# Context menu on issues
assert_select "form[data-cm-url=?]", '/issues/context_menu'
assert_select "div#sidebar" do
+ # Tracker checkboxes
+ assert_select 'input[type=hidden][name=?]', 'tracker_ids[]'
+ assert_select 'input[type=checkbox][name=?]', 'tracker_ids[]', 3
# Links to versions anchors
assert_select 'a[href=?]', '#2.0'
# Links to completed versions in the sidebar