Enabling the Calendar plugin disables sorting by Replies and Views in Latest

What the title says. :slight_smile:

By default, topics in Latest can be sorted by Replies and Views, clicking the list headers. However, simply enabling calendar enabled in the settings disables these optional ways of sorting. You donā€™t even need to create a calendar-enabled post to trigger the change. If you disable the plugin, Replies and Views are clickable again.

Is this a bug or intended design? There doesnā€™t seem to be a relation between plugin and Latest sorting from a user point of view, and the Latest sorting feature is just as useful with Calendar enabled.

2 Likes

This cropped up the other day, but I canā€™t quite find where I read it. :slightly_smiling_face:

From what I recall, itā€™s actually a line in the code that seems to do it on purpose. Iā€™ll see if I can dig up more information. :+1:


Update: @icaria36

I think it was recently added here:

1 Like

If Iā€™m following the commit history correctly, the intended behavior is that, when sorting by start event date is enabled, then sorting by other means should be disabled. This means total sense.

However, right now sorting by other means is disabled regardless of whether sorting by start event date is enabled or not. This doesnā€™t seem to be the intended behavior, so maybe this is a bug indeed.

3 Likes

Hi @icaria36! You are right, this is indeed a bug.

Iā€™ve pushed the fix to discourse-calendar just now.

Thanks for your report!

3 Likes

This topic was automatically closed after 24 hours. New replies are no longer allowed.