summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2023-04-14 01:05:02 +0000
committerGo MAEDA <maeda@farend.jp>2023-04-14 01:05:02 +0000
commit55408c480b64f1af10aaf6e264b214d9d757cb84 (patch)
treed8fcfb9729fe83f5ce5bfcda6cf35b12288135b2 /app/views
parent73bc735accb059bf1239ba08fa43920ca2a13341 (diff)
downloadredmine-55408c480b64f1af10aaf6e264b214d9d757cb84.tar.gz
redmine-55408c480b64f1af10aaf6e264b214d9d757cb84.zip
Ability to disable the priority field (#38416).
Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22185 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/issues/show.html.erb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb
index c7cd5689c..6f0a0a984 100644
--- a/app/views/issues/show.html.erb
+++ b/app/views/issues/show.html.erb
@@ -47,8 +47,10 @@
<div class="attributes">
<%= issue_fields_rows do |rows|
rows.left l(:field_status), @issue.status.name, :class => 'status'
- rows.left l(:field_priority), @issue.priority.name, :class => 'priority'
+ unless @issue.disabled_core_fields.include?('priority_id')
+ rows.left l(:field_priority), @issue.priority.name, :class => 'priority'
+ end
unless @issue.disabled_core_fields.include?('assigned_to_id')
rows.left l(:field_assigned_to), (@issue.assigned_to ? link_to_principal(@issue.assigned_to) : "-"), :class => 'assigned-to'
end