summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-17 07:00:38 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2015-10-17 07:00:38 +0000
commitb68b5819d578a5194d9d67172177b1950bba9ee9 (patch)
tree6c0eef569154e114db8390fcf721ee04f5373aa3 /app
parent589bde0899cc72c7a5c253a6f1da4e0408de031f (diff)
downloadredmine-b68b5819d578a5194d9d67172177b1950bba9ee9.tar.gz
redmine-b68b5819d578a5194d9d67172177b1950bba9ee9.zip
Hide version and/or category on issue details when no versions and/or categories are defined (#18004).
git-svn-id: http://svn.redmine.org/redmine/trunk@14679 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r--app/views/issues/show.html.erb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb
index f980f0b40..4c60587d2 100644
--- a/app/views/issues/show.html.erb
+++ b/app/views/issues/show.html.erb
@@ -41,10 +41,10 @@
unless @issue.disabled_core_fields.include?('assigned_to_id')
rows.left l(:field_assigned_to), avatar(@issue.assigned_to, :size => "14").to_s.html_safe + (@issue.assigned_to ? link_to_user(@issue.assigned_to) : "-"), :class => 'assigned-to'
end
- unless @issue.disabled_core_fields.include?('category_id')
+ unless @issue.disabled_core_fields.include?('category_id') || (@issue.category.nil? && @issue.project.issue_categories.none?)
rows.left l(:field_category), (@issue.category ? @issue.category.name : "-"), :class => 'category'
end
- unless @issue.disabled_core_fields.include?('fixed_version_id')
+ unless @issue.disabled_core_fields.include?('fixed_version_id') || (@issue.fixed_version.nil? && @issue.assignable_versions.none?)
rows.left l(:field_fixed_version), (@issue.fixed_version ? link_to_version(@issue.fixed_version) : "-"), :class => 'fixed-version'
end