summaryrefslogtreecommitdiffstats
path: root/app/views/projects/settings/_members.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/settings/_members.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/settings/_members.html.erb')
-rw-r--r--app/views/projects/settings/_members.html.erb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/views/projects/settings/_members.html.erb b/app/views/projects/settings/_members.html.erb
index 90a9d549d..ac62d48db 100644
--- a/app/views/projects/settings/_members.html.erb
+++ b/app/views/projects/settings/_members.html.erb
@@ -29,6 +29,7 @@
<label>
<%= check_box_tag('membership[role_ids][]',
role.id, member.roles.include?(role),
+ :id => nil,
:disabled => member.member_roles.detect {
|mr| mr.role_id == role.id && !mr.inherited_from.nil?
} ) %> <%= role %>
@@ -79,7 +80,7 @@
<p>
<%= l(:label_role_plural) %>:
<% roles.each do |role| %>
- <label><%= check_box_tag 'membership[role_ids][]', role.id %> <%= role %></label>
+ <label><%= check_box_tag 'membership[role_ids][]', role.id, false, :id => nil %> <%= role %></label>
<% end %>
</p>
<p><%= submit_tag l(:button_add), :id => 'member-add-submit' %></p>