Patch #39849 ยป 0001-Optimize-IssueCategory-SQL-queries-when-showing-an-i.patch
| app/views/issues/_attributes.html.erb | ||
|---|---|---|
|
</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),
|
||