summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2017-11-26 02:20:23 +0000
committerGo MAEDA <maeda@farend.jp>2017-11-26 02:20:23 +0000
commit092cadb0ccc6028e277c84ea35c24df59d002b26 (patch)
tree6edfef1c66c5ae9696274db8fb695637b071940a
parenta92b92e501be54513e1f6c65cc26b729f4323cc0 (diff)
downloadredmine-092cadb0ccc6028e277c84ea35c24df59d002b26.tar.gz
redmine-092cadb0ccc6028e277c84ea35c24df59d002b26.zip
Fix: Changing the tracker to a tracker with the tracker field set to read-only won't work (#27110)
Patch by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@17032 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r--app/views/issues/_form.html.erb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/issues/_form.html.erb b/app/views/issues/_form.html.erb
index 011928db8..ab19feef2 100644
--- a/app/views/issues/_form.html.erb
+++ b/app/views/issues/_form.html.erb
@@ -14,7 +14,7 @@
:onchange => "updateIssueFrom('#{escape_javascript update_issue_form_path(@project, @issue)}', this)" %></p>
<% end %>
-<% if @issue.safe_attribute? 'tracker_id' %>
+<% if @issue.safe_attribute?('tracker_id') || (@issue.persisted? && @issue.tracker_id_changed?) %>
<p><%= f.select :tracker_id, trackers_options_for_select(@issue), {:required => true},
:onchange => "updateIssueFrom('#{escape_javascript update_issue_form_path(@project, @issue)}', this)" %></p>
<% end %>