Feature #18004 » 18004-no_more_magic_for_category_and_version_fields.patch
| app/views/issues/_attributes.html.erb | ||
|---|---|---|
| 18 | 18 |
<p><%= f.select :assigned_to_id, principals_options_for_select(@issue.assignable_users, @issue.assigned_to), :include_blank => true, :required => @issue.required_attribute?('assigned_to_id') %></p>
|
| 19 | 19 |
<% end %> |
| 20 | 20 | |
| 21 |
<% if @issue.safe_attribute?('category_id') && @issue.project.issue_categories.any? %>
|
|
| 21 |
<% if @issue.safe_attribute?('category_id') %>
|
|
| 22 | 22 |
<p><%= f.select :category_id, (@issue.project.issue_categories.collect {|c| [c.name, c.id]}), :include_blank => true, :required => @issue.required_attribute?('category_id') %>
|
| 23 | 23 |
<%= link_to(image_tag('add.png', :style => 'vertical-align: middle;'),
|
| 24 | 24 |
new_project_issue_category_path(@issue.project), |
| ... | ... | |
| 28 | 28 |
:tabindex => 200) if User.current.allowed_to?(:manage_categories, @issue.project) %></p> |
| 29 | 29 |
<% end %> |
| 30 | 30 | |
| 31 |
<% if @issue.safe_attribute?('fixed_version_id') && @issue.assignable_versions.any? %>
|
|
| 31 |
<% if @issue.safe_attribute?('fixed_version_id') %>
|
|
| 32 | 32 |
<p><%= f.select :fixed_version_id, version_options_for_select(@issue.assignable_versions, @issue.fixed_version), :include_blank => true, :required => @issue.required_attribute?('fixed_version_id') %>
|
| 33 | 33 |
<%= link_to(image_tag('add.png', :style => 'vertical-align: middle;'),
|
| 34 | 34 |
new_project_version_path(@issue.project), |