"Sortable contextual" filters not fully working

Created on 12 June 2023, over 1 year ago
Updated 13 June 2023, over 1 year ago

Problem/Motivation

When adding multiple "Sortable contextual filters", only the last one works properly. Other are taken into account, but not their sort direction. For example, these filters :

  • sticky|DESC : is always considered as sticky|ASC
  • created|DESC : works as excpected

Proposed resolution

When there are multiple filters, the first ones (all but the last one, in fact) have their order containing the characters "\r" at the end of the string.

We must trim the strings (see attached patch).

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇫🇷France NicociN

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024