mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-31 11:37:14 +00:00
Optimize IssueCategory SQL queries when showing an issue (#39849).
Patch by Go MAEDA. git-svn-id: https://svn.redmine.org/redmine/trunk@22568 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
fa85583c96
commit
8e1319f54e
@ -32,8 +32,8 @@
|
||||
</p>
|
||||
<% end %>
|
||||
|
||||
<% if @issue.safe_attribute?('category_id') && @issue.project.issue_categories.any? %>
|
||||
<p><%= f.select :category_id, (@issue.project.issue_categories.collect {|c| [c.name, c.id]}),
|
||||
<% if @issue.safe_attribute?('category_id') && (category_options = @issue.project.issue_categories.pluck(:name, :id)).present? %>
|
||||
<p><%= f.select :category_id, category_options,
|
||||
{:include_blank => true, :required => @issue.required_attribute?('category_id')},
|
||||
:onchange => ("updateIssueFrom('#{escape_javascript(update_issue_form_path(@project, @issue))}', this)" if @issue.new_record?) %>
|
||||
<%= link_to(l(:label_issue_category_new),
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user