Skip to content

[Forms] Redirect on successful save#10032

Open
driusan wants to merge 2 commits intoaces:mainfrom
driusan:MyPreferencesSaveFix
Open

[Forms] Redirect on successful save#10032
driusan wants to merge 2 commits intoaces:mainfrom
driusan:MyPreferencesSaveFix

Conversation

@driusan
Copy link
Copy Markdown
Collaborator

@driusan driusan commented Sep 25, 2025

This updates the NDB_Form class to respond with a 303 See Other after a successful page and redirect to the same page.

This (in addition to being a better practice) fixes problems where the page is rendered before changes that depend on the updated values are saved to the database.

In particular, when changing the language on the my_preferences page, it will now immediately take effect rather than only doing after after the next page load.

Blocked by #10031

@github-actions github-actions Bot added Language: PHP PR or issue that update PHP code Module: statistics PR or issue related to statistics module Module: api PR or issue related to api module Module: candidate_profile PR or issue related to candidate_profile module Module: conflict_resolver PR or issue related to conflict_resolver module Module: instruments PR or issue related to instruments module labels Sep 25, 2025
@driusan driusan added the State: Blocked PR or issue awaiting an external event such as the merge or another PR to proceed label Sep 25, 2025
@CamilleBeau CamilleBeau self-assigned this Sep 29, 2025
@CamilleBeau
Copy link
Copy Markdown
Collaborator

@driusan the PR needs an update for test suite

@driusan
Copy link
Copy Markdown
Collaborator Author

driusan commented Sep 30, 2025

@CamilleBeau rebased

@CamilleBeau CamilleBeau removed their assignment Oct 2, 2025
@driusan driusan force-pushed the MyPreferencesSaveFix branch from 62d5d49 to 995f724 Compare February 9, 2026 15:59
@driusan driusan removed the State: Blocked PR or issue awaiting an external event such as the merge or another PR to proceed label Feb 9, 2026
@driusan driusan force-pushed the MyPreferencesSaveFix branch from 995f724 to 6474d46 Compare April 13, 2026 20:26
@driusan driusan removed their assignment Apr 13, 2026
@driusan driusan self-assigned this Apr 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Language: PHP PR or issue that update PHP code Module: api PR or issue related to api module Module: candidate_profile PR or issue related to candidate_profile module Module: conflict_resolver PR or issue related to conflict_resolver module Module: instruments PR or issue related to instruments module Module: statistics PR or issue related to statistics module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants