diff --git a/app/controllers/api/v1/registrant/contacts_controller.rb b/app/controllers/api/v1/registrant/contacts_controller.rb index 469a1d3d8..dafe9549b 100644 --- a/app/controllers/api/v1/registrant/contacts_controller.rb +++ b/app/controllers/api/v1/registrant/contacts_controller.rb @@ -46,17 +46,23 @@ module Api end def update + p '------' + p params + p '-----' contact = find_contact_and_update_credentials(params[:uuid], params[:name], params[:email], params[:phone]) reparsed_request = reparsed_request(request.body.string) disclosed_attributes = reparsed_request[:disclosed_attributes] - render_disclosed_attributes_error and return if disclosed_attributes.present? && contact.org? && - !disclosed_attributes.include?('phone') + p '--------' + + # render_disclosed_attributes_error and return if disclosed_attributes.present? && contact.org? && + # !disclosed_attributes.include?('phone') contact.disclosed_attributes = disclosed_attributes if disclosed_attributes publishable = reparsed_request[:registrant_publishable] contact.registrant_publishable = publishable if publishable.in? [true, false] + logger.debug "Setting.address_processing is set to #{Setting.address_processing}" contact.address = parse_address(params[:address]) if Setting.address_processing && params[:address] render_address_error and return if !Setting.address_processing && params[:address] @@ -67,6 +73,9 @@ module Api render_fax_error and return if ENV['fax_enabled'] != 'true' && params[:fax] contact = update_and_notify!(contact) + p '--- contact' + p contact + p '-------' render json: serialize_contact(contact, true) end