Editing a post in filtered topic hides the "Show all" button

AI-generated summary

A bug was reported where editing a post in a filtered topic hides the “Show all” button, preventing users from viewing all replies without reloading the page. Nacho_Caballero detailed the issue and noted a related problem with reply ordering. pmusaraj confirmed the fix, which ensures the filter and “Show all” button remain visible after editing or replying. The fix was implemented in this commit.

Steps to reproduce. On a site with “filtered replies” enabled:

  1. Click on a post’s replies or in-response-to
  2. Edit one of the visible posts and hit “Save changes”

Expected behavior. I’m not sure which one of these is intended, but both would work:

  • The filter remains and the “Show all” button is still visible.
  • The filter is removed

Actual behavior: The filter remains but no “Show all” button appears. The only way to see all posts is to reload the page manually.

@pmusaraj I’m not sure if this is related to yesterday’s fix

2 Likes

@codinghorror What do you think about this one?

1 Like

I have this on my todo list @Nacho_Caballero, just haven’t had time to look into it. But will do so, soon.

3 Likes

Another thing I’ve noticed (not sure if it’s the same or another bug), is that when you reply on a filtered topic and then click to show some of the previous hidden replies, the new reply appears on top of the older replies.

The order goes back to normal after refreshing the page.

2 Likes

Apologies for the delay @Nacho_Caballero, this is now fixed. It should keep the filters and the bar with the “Show All” button visible after editing a post or replying.

Here’s the relevant commit.

4 Likes

Thanks a lot, Penar. I love your minimalist bug fixes. :smiling_face_with_sunglasses:

4 Likes

This topic was automatically closed after 2 days. New replies are no longer allowed.