Skip to content

Comments

RSec Admin Nomination Page - "New Officer" blank error check + Return properly after redirect#321

Open
ochan1 wants to merge 2 commits intocompserv:masterfrom
ochan1:rsec_new_officer_blank_error_check
Open

RSec Admin Nomination Page - "New Officer" blank error check + Return properly after redirect#321
ochan1 wants to merge 2 commits intocompserv:masterfrom
ochan1:rsec_new_officer_blank_error_check

Conversation

@ochan1
Copy link
Contributor

@ochan1 ochan1 commented Jan 26, 2025

https://stackoverflow.com/questions/1183506/make-blank-params-nil

Using Election.new is fine (as long as the other parameters are fine also) https://stackoverflow.com/questions/33637552/save-activerecord-object-without-commit-rails-4

The issue that made Nominations create a buggy entry was this: rails/rails#26363
Code continued to keep running despite blank Person and Position params ("invalid" entries are not covered here, but a minor issue since only this page is running the function, and by UI limits the input available)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant