diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-11-18 11:56:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2016-11-18 11:56:19 +0000 |
commit | e6130a1e0d95daef63db14c7ed7bcb9ff6ba35e9 (patch) | |
tree | 36c1db297ef217221083de936624de07b2963316 /app | |
parent | 25a37663651122f80cbb6252952cdcb257103366 (diff) | |
download | redmine-e6130a1e0d95daef63db14c7ed7bcb9ff6ba35e9.tar.gz redmine-e6130a1e0d95daef63db14c7ed7bcb9ff6ba35e9.zip |
Project field disappears when target project disallows user to edit the project (#24311).
git-svn-id: http://svn.redmine.org/redmine/trunk@15959 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app')
-rw-r--r-- | app/views/issues/_form.html.erb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/issues/_form.html.erb b/app/views/issues/_form.html.erb index e9f63d51a..f11c71faf 100644 --- a/app/views/issues/_form.html.erb +++ b/app/views/issues/_form.html.erb @@ -8,7 +8,7 @@ </p> <% end %> -<% if @issue.safe_attribute?('project_id') && (!@issue.new_record? || @project.nil? || @issue.copy?) %> +<% if (@issue.safe_attribute?('project_id') || @issue.project_id_changed?) && (!@issue.new_record? || @project.nil? || @issue.copy?) %> <p><%= f.select :project_id, project_tree_options_for_select(@issue.allowed_target_projects, :selected => @issue.project), {:required => true}, :onchange => "updateIssueFrom('#{escape_javascript update_issue_form_path(@project, @issue)}', this)" %></p> <% end %> |