mirror of
https://github.com/meineerde/redmine.git
synced 2026-03-18 15:08:12 +00:00
Merged r23209 and r23210 from trunk to 6.0-stable (#12521).
git-svn-id: https://svn.redmine.org/redmine/branches/6.0-stable@23211 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
commit
764af6c040
@ -91,7 +91,7 @@ class TrackersController < ApplicationController
|
||||
unless @tracker.issues.empty?
|
||||
projects = Project.joins(:issues).where(issues: {tracker_id: @tracker.id}).sorted.distinct
|
||||
links = projects.map do |p|
|
||||
view_context.link_to(p, project_issues_path(p, set_filter: 1, tracker_id: @tracker.id))
|
||||
view_context.link_to(p, project_issues_path(p, set_filter: 1, tracker_id: @tracker.id, status_id: '*'))
|
||||
end.join(', ')
|
||||
flash[:error] = l(:error_can_not_delete_tracker_html, projects: links.html_safe)
|
||||
else
|
||||
|
||||
@ -20,7 +20,7 @@
|
||||
require_relative '../test_helper'
|
||||
|
||||
class TrackersControllerTest < Redmine::ControllerTest
|
||||
fixtures :trackers, :projects, :projects_trackers, :users, :issues, :custom_fields, :issue_statuses
|
||||
fixtures :trackers, :projects, :projects_trackers, :users, :issues, :custom_fields, :issue_statuses, :enumerations;
|
||||
|
||||
def setup
|
||||
User.current = nil
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user