Skip to content

Keep the comment filter working after editing a comment - #379

Open
snoopdave wants to merge 1 commit into
masterfrom
comments-filter-after-edit
Open

snoopdave wants to merge 1 commit into
masterfrom
comments-filter-after-edit

Conversation

@snoopdave

Copy link
Copy Markdown
Contributor

Greg Huber found on 6.1.8 RC2 that editing a comment on the Comments page, then clicking Filter, gives a 500. Master has the same code.

  • The inline save uses up the page's form token and refreshed it only in the comments form; the filter form kept the spent one. Now every token field on the page is refreshed.
  • Same one-line change as Keep the comment filter working after editing a comment (6.1.x) #378 (6.1.x), which I checked locally on Jetty; not yet run on master.
  • CHANGES.md entry under 7.0.0 bug fixes.

Saving an edited comment used up the page's form token and refreshed it
only in the comments form, so the filter form then posted a spent token
and failed. Refresh every form token on the page.
@snoopdave
snoopdave requested a review from mraible November 23, 2026 21:52

@mraible mraible left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same one-line change as #378, which I checked on the RC2 source in Jetty (Filter works after one or two edits, and both salt fields get the new salt). CI is green.

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants