Browse Source

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
tags/5.0.0
Go MAEDA 2 years ago
parent
commit
2b1d88fa59
2 changed files with 39 additions and 0 deletions
  1. 1
    0
      app/views/versions/_sidebar.html.erb
  2. 38
    0
      test/system/versions_test.rb

+ 1
- 0
app/views/versions/_sidebar.html.erb View File

@@ -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),

+ 38
- 0
test/system/versions_test.rb View File

@@ -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

Loading…
Cancel
Save