[openstreetmap/openstreetmap-website] Make profiles/links#update handle being given no links (PR #7382)

Tom Hughes notifications at github.com
Thu Sep 10 17:27:36 UTC 2026


This fixes an exception logged in glitchtip when a user with no social links opens the link edit page in their profile and then hits update without adding any links, which submits the form with no link data causing an exception when we call `assign_attributes` with `nil`.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/7382

-- Commit Summary --

  * Make profiles/links#update handle being given no links

-- File Changes --

    M app/controllers/profiles/links_controller.rb (2)
    M test/controllers/profiles/links_controller_test.rb (13)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/7382.patch
https://github.com/openstreetmap/openstreetmap-website/pull/7382.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/7382
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/7382 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260910/4abee2a7/attachment.htm>


More information about the rails-dev mailing list