From 0313b27b2e3a11dda0c34ebfbeb943ce540ab1a6 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Wed, 17 Feb 2021 16:56:12 -0600 Subject: [PATCH] Correct the list of params that get passed to a supporter update controller call --- app/controllers/nonprofits/supporters_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/nonprofits/supporters_controller.rb b/app/controllers/nonprofits/supporters_controller.rb index fab9f69a..ebffd6ad 100644 --- a/app/controllers/nonprofits/supporters_controller.rb +++ b/app/controllers/nonprofits/supporters_controller.rb @@ -81,7 +81,7 @@ module Nonprofits # put /nonprofits/:nonprofit_id/supporters/:id def update - json_saved UpdateSupporter.from_info(current_supporter, update_supporter_params[:supporter]) + json_saved UpdateSupporter.from_info(current_supporter, update_supporter_params) end def bulk_delete @@ -114,11 +114,11 @@ module Nonprofits private def create_supporter_params - params.require(:supporter).permit(:name, :address, :city, :state_code, :country, :address_line2, :first_name, :last_name, :customFields, :email) + params.require(:supporter).permit(:name, :address, :city, :state_code, :country, :address_line2, :first_name, :last_name, :customFields, :email, :zip_code, :phone) end def update_supporter_params - params.require(:supporter).permit(:name, :address, :city, :state_code, :country, :address_line2) + params.require(:supporter).permit(:name, :address, :city, :state_code, :country, :address_line2, :email, :organization, :title, :zip_code, :phone) end end end