app/controllers/phcmemberspro/member/addresses_controller.rb in phcmemberspro-11.7.0 vs app/controllers/phcmemberspro/member/addresses_controller.rb in phcmemberspro-11.7.1

- old
+ new

@@ -36,10 +36,11 @@ # POST - Directory Listings 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 if @member_address.save redirect_to member_profile_addresses_url, notice: 'Listing was successfully created.' else @@ -48,9 +49,10 @@ end # 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 if @member_address.update(member_address_params) redirect_to member_profile_addresses_url, notice: 'Listing was successfully updated.' else