summaryrefslogtreecommitdiffstats
path: root/app/views/projects/_form.html.erb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-01-11 12:55:21 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-01-11 12:55:21 +0000
commite9689f5fe32666b238a1a634d385399bb9a3f025 (patch)
treedb4d367e4afa9bf040df1da39c97c67fca53da0b /app/views/projects/_form.html.erb
parentd302450731e803db53841ef83cf0ee6611be7d3d (diff)
downloadredmine-e9689f5fe32666b238a1a634d385399bb9a3f025.tar.gz
redmine-e9689f5fe32666b238a1a634d385399bb9a3f025.zip
Removes duplicate ids (#15485).
git-svn-id: http://svn.redmine.org/redmine/trunk@12657 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/projects/_form.html.erb')
-rw-r--r--app/views/projects/_form.html.erb6
1 files changed, 4 insertions, 2 deletions
diff --git a/app/views/projects/_form.html.erb b/app/views/projects/_form.html.erb
index 9077a0120..03202833e 100644
--- a/app/views/projects/_form.html.erb
+++ b/app/views/projects/_form.html.erb
@@ -45,7 +45,7 @@
<fieldset class="box tabular" id="project_trackers"><legend><%=l(:label_tracker_plural)%></legend>
<% @trackers.each do |tracker| %>
<label class="floating">
- <%= check_box_tag 'project[tracker_ids][]', tracker.id, @project.trackers.include?(tracker) %>
+ <%= check_box_tag 'project[tracker_ids][]', tracker.id, @project.trackers.include?(tracker), :id => nil %>
<%=h tracker %>
</label>
<% end %>
@@ -57,7 +57,9 @@
<fieldset class="box tabular" id="project_issue_custom_fields"><legend><%=l(:label_custom_field_plural)%></legend>
<% @issue_custom_fields.each do |custom_field| %>
<label class="floating">
- <%= check_box_tag 'project[issue_custom_field_ids][]', custom_field.id, (@project.all_issue_custom_fields.include? custom_field), (custom_field.is_for_all? ? {:disabled => "disabled"} : {}) %>
+ <%= check_box_tag 'project[issue_custom_field_ids][]', custom_field.id, (@project.all_issue_custom_fields.include? custom_field),
+ :disabled => (custom_field.is_for_all? ? "disabled" : nil),
+ :id => nil %>
<%=h custom_field.name %>
</label>
<% end %>