diff options
author | Go MAEDA <maeda@farend.jp> | 2021-09-04 01:43:50 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2021-09-04 01:43:50 +0000 |
commit | 2b1d88fa599653442e7c77d0493064ac35f1ec52 (patch) | |
tree | d7d6b590d018b305245179b10956bf58ece71dd6 | |
parent | 4aef1bf4912b5be875d90829a856264e8b50a546 (diff) | |
download | redmine-2b1d88fa599653442e7c77d0493064ac35f1ec52.tar.gz redmine-2b1d88fa599653442e7c77d0493064ac35f1ec52.zip |
Allow Roadmap view without any related issues (#6432).
Patch by Mischa The Evil.
git-svn-id: http://svn.redmine.org/redmine/trunk@21204 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/views/versions/_sidebar.html.erb | 1 | ||||
-rw-r--r-- | test/system/versions_test.rb | 38 |
2 files changed, 39 insertions, 0 deletions
diff --git a/app/views/versions/_sidebar.html.erb b/app/views/versions/_sidebar.html.erb index abfe9c67c..6b34b34b8 100644 --- a/app/views/versions/_sidebar.html.erb +++ b/app/views/versions/_sidebar.html.erb @@ -3,6 +3,7 @@ <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/system/versions_test.rb b/test/system/versions_test.rb new file mode 100644 index 000000000..ac6659992 --- /dev/null +++ b/test/system/versions_test.rb @@ -0,0 +1,38 @@ +# frozen_string_literal: true + +# Redmine - project management software +# Copyright (C) 2006-2021 Jean-Philippe Lang +# +# This program is free software; you can redistribute it and/or +# modify it under the terms of the GNU General Public License +# as published by the Free Software Foundation; either version 2 +# of the License, or (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + +require File.expand_path('../../application_system_test_case', __FILE__) + +class VersionsTest < ApplicationSystemTestCase + fixtures :projects, :trackers, :projects_trackers, :enabled_modules, + :issue_statuses, :issues, :versions + + def test_index_with_blank_tracker_ids + with_settings :default_language => 'en', :force_default_language_for_anonymous => '1' do + visit '/projects/ecookbook/roadmap' + + find('#sidebar>form>ul:nth-child(3)>li:nth-child(1)>label>input[type=checkbox]').click + find('#sidebar>form>ul:nth-child(3)>li:nth-child(2)>label>input[type=checkbox]').click + find('#sidebar>form>ul:nth-child(3)>li:nth-child(3)>label>input[type=checkbox]').click + click_on 'Apply' + + assert !page.has_css?('table.list.related-issues') + end + end +end |