From dde0a5d96c4468d40ef48faac83300e153afc740 Mon Sep 17 00:00:00 2001
From: MAEDA Go
<%= 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? %> +
<%= 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), -- 2.42.0