app/controllers/phcmemberspro/member/addresses_controller.rb in phcmemberspro-20.2.0 vs app/controllers/phcmemberspro/member/addresses_controller.rb in phcmemberspro-20.2.1

- old
+ new

@@ -11,11 +11,11 @@ before_action :set_member_address, only: [:show, :edit, :update, :destroy] # INDEX - Directory Listings def index profile = Member::Profile.find(params[:profile_id]) - @member_addresses = profile.addresses.where(oganization_id: membership_info.org_id) + @member_addresses = profile.addresses.where(oganization_id: authrocket_membership_info.org_id) end # LISTINGS DETAILS - Directory Listings def show profile = Member::Profile.find(params[:profile_id]) @@ -37,12 +37,12 @@ def create @profile = Member::Profile.find(params[:profile_id]) @member_address = @profile.addresses.create(member_address_params) @member_address.user_id = current_user.id @member_address.user_name = current_user.username - @member_address.membership_id = membership_info.id - @member_address.oganization_id = membership_info.org_id + @member_address.membership_id = authrocket_membership_info.id + @member_address.oganization_id = authrocket_membership_info.org_id if @member_address.save redirect_to member_profile_addresses_url, notice: 'Listing was successfully created.' else render :new end @@ -50,11 +50,11 @@ # PATCH/PUT - Directory Listings def update @member_address.user_id = current_user.id @member_address.user_name = current_user.username - @member_address.membership_id = membership_info.id - @member_address.oganization_id = membership_info.org_id + @member_address.membership_id = authrocket_membership_info.id + @member_address.oganization_id = authrocket_membership_info.org_id if @member_address.update(member_address_params) redirect_to member_profile_addresses_url, notice: 'Listing was successfully updated.' else render :edit end