If the user somehow manages to open `/reports/new` page without `reportable_id` 
and `reportable_type` parameters, send a bad request error instead of 
redirection.
You can view, comment on, or merge this pull request online at:

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

-- Commit Summary --

  * Replace redirect with bad request error for new report with missing params

-- File Changes --

    M app/controllers/reports_controller.rb (2)
    M config/locales/en.yml (1)
    M test/controllers/reports_controller_test.rb (7)
    M test/system/report_diary_entry_test.rb (6)

-- Patch Links --

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

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

Message ID: <openstreetmap/openstreetmap-website/pull/6...@github.com>
_______________________________________________
rails-dev mailing list
rails-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to