mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +01:00
Fixed: Issues counters in roadmap only link to issues in the same project (#9660).
Contributed by Sridhar Dhanapalan. git-svn-id: http://svn.redmine.org/redmine/trunk@13398 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -27,6 +27,28 @@ module VersionsHelper
|
||||
end
|
||||
end
|
||||
|
||||
def version_filtered_issues_path(version, options = {})
|
||||
options = {:fixed_version_id => version, :set_filter => 1}.merge(options)
|
||||
project = case version.sharing
|
||||
when 'hierarchy', 'tree'
|
||||
if version.project && version.project.root.visible?
|
||||
version.project.root
|
||||
else
|
||||
version.project
|
||||
end
|
||||
when 'system'
|
||||
nil
|
||||
else
|
||||
version.project
|
||||
end
|
||||
|
||||
if project
|
||||
project_issues_path(project, options)
|
||||
else
|
||||
issues_path(options)
|
||||
end
|
||||
end
|
||||
|
||||
STATUS_BY_CRITERIAS = %w(tracker status priority author assigned_to category)
|
||||
|
||||
def render_issue_status_by(version, criteria)
|
||||
|
||||
Reference in New Issue
Block a user