name the project_id parameter correct

pull/1186/head
Martin Linkhorst 12 years ago
parent d1c88595af
commit 2120fd8359
  1. 2
      app/controllers/members_controller.rb
  2. 2
      app/views/projects/settings/_members.html.erb

@ -127,7 +127,7 @@ class MembersController < ApplicationController
# this way, mass assignment is considered and all updates happen in one transaction (autosave)
attrs = params[:member].except(:user_id)
attrs.merge! params[:membership].dup if params[:membership].present?
attrs.delete(:id)
attrs.delete(:project_id)
role_ids = attrs.delete(:role_ids).map(&:to_i).select{ |i| i > 0 }
roles = Role.find_all_by_id(role_ids)

@ -71,7 +71,7 @@
<div class="splitcontentright">
<% if roles.any? && available_principals.any? %>
<%= form_for(@member, :url => {:controller => 'members', :action => 'new', :id => @project, :page => params[:page]},
<%= form_for(@member, :url => {:controller => 'members', :action => 'create', :project_id => @project, :page => params[:page]},
:method => :post,
:remote => true,
:loading => '$(\'member-add-submit\').disable();',

Loading…
Cancel
Save