mirror of
https://github.com/meineerde/redmine.git
synced 2026-01-04 06:39:38 +00:00
Speeds up the custom field edit view when having hundreds of projects.
git-svn-id: http://svn.redmine.org/redmine/trunk@15084 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e0fee3bda4
commit
aa490a70b3
@ -102,8 +102,9 @@ when "IssueCustomField" %>
|
||||
</fieldset>
|
||||
|
||||
<fieldset class="box" id="custom_field_project_ids"><legend><%= l(:label_project_plural) %></legend>
|
||||
<% project_ids = @custom_field.project_ids.to_a %>
|
||||
<%= render_project_nested_lists(Project.all) do |p|
|
||||
content_tag('label', check_box_tag('custom_field[project_ids][]', p.id, @custom_field.projects.to_a.include?(p), :id => nil) + ' ' + p)
|
||||
content_tag('label', check_box_tag('custom_field[project_ids][]', p.id, project_ids.include?(p.id), :id => nil) + ' ' + p)
|
||||
end %>
|
||||
<%= hidden_field_tag('custom_field[project_ids][]', '', :id => nil) %>
|
||||
<p><%= check_all_links 'custom_field_project_ids' %></p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user