mirror of
https://github.com/meineerde/redmine.git
synced 2026-02-03 23:53:23 +00:00
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
This commit is contained in:
parent
4aef1bf491
commit
2b1d88fa59
@ -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
test/system/versions_test.rb
Normal file
38
test/system/versions_test.rb
Normal 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…
x
Reference in New Issue
Block a user