diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-01-11 12:45:19 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-01-11 12:45:19 +0000 |
commit | f4f3756fcc5e8aebeaa3bb1f8e1c747a0886d52d (patch) | |
tree | 1b6d925e09b8804d02e481e84a260725bce76e0b /app/views/users | |
parent | 9fe24bc88f44e76e97a02316440e8f19bee3d518 (diff) | |
download | redmine-f4f3756fcc5e8aebeaa3bb1f8e1c747a0886d52d.tar.gz redmine-f4f3756fcc5e8aebeaa3bb1f8e1c747a0886d52d.zip |
Removes duplicate ids (#15485).
git-svn-id: http://svn.redmine.org/redmine/trunk@12654 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/users')
-rw-r--r-- | app/views/users/_memberships.html.erb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/users/_memberships.html.erb b/app/views/users/_memberships.html.erb index 5f61d2ce2..c0d8051ae 100644 --- a/app/views/users/_memberships.html.erb +++ b/app/views/users/_memberships.html.erb @@ -25,7 +25,8 @@ :style => 'display:none;'}) do %> <p><% roles.each do |role| %> <label><%= check_box_tag 'membership[role_ids][]', role.id, membership.roles.include?(role), - :disabled => membership.member_roles.detect {|mr| mr.role_id == role.id && !mr.inherited_from.nil?} %> <%=h role %></label><br /> + :disabled => membership.member_roles.detect {|mr| mr.role_id == role.id && !mr.inherited_from.nil?}, + :id => nil %> <%=h role %></label><br /> <% end %></p> <%= hidden_field_tag 'membership[role_ids][]', '' %> <p><%= submit_tag l(:button_change) %> @@ -58,7 +59,7 @@ <%= select_tag 'membership[project_id]', options_for_membership_project_select(@user, projects) %> <p><%= l(:label_role_plural) %>: <% roles.each do |role| %> - <label><%= check_box_tag 'membership[role_ids][]', role.id %> <%=h role %></label> + <label><%= check_box_tag 'membership[role_ids][]', role.id, false, :id => nil %> <%=h role %></label> <% end %></p> <p><%= submit_tag l(:button_add) %></p> <% end %> |