Extended Set of User Fields Resequences itself

AI-generated summary

ChristopherMcEwan reported a bug where extended user fields (increased from 3 to 15+) resequence themselves after creation. Despite intending to display fields in creation order (e.g., UF1, MT2, IE3), the system reordered them upon a new user’s login, moving items like UF14 and UF15 to the front. sam requested feedback from eviltrout. eviltrout clarified that the previous behavior was undefined but confirmed that the latest Discourse version now supports explicit sorting. Users can now utilize up/down arrows on the configuration page to arrange fields as desired.

A recent modification increased the available number of user fields from 3 to [a number equal to or greater than 15 - that is as far as I tested].

However, when working with these new fields, they appear to resequence themselves after having been created.

The screenshot below illustrates. The topics were created in a sequence of 1-15. I placed different alphas in front of the sequence identifiers to test whether the list was being sorted alphabetically. So the list was created and intended to display as UF1, MT2, IE3, IE4… ,UF14,UF15. However, having closed out and gone to test as a new user the list now presents a different sequence with UF14, UF15 being brought to the front along with MT2. This is also the sequence that a new user sees at login.

I presume that the design intent was to present the fields in the order in which they were originally created/laid out.

And yes, i know that I shouldn’t hit the new user with 15 questions at login - that is not my intent; this was done for testing purposes (once i noticed that my smaller list was also being resequnced)

3 „Gefällt mir“

@eviltrout any feedback here?

Good news! The latest version of Discourse allows sorting of the fields. Before then it was somewhat undefined behavior. If you visit that page now you have arrows to move entries up and down :smile:

3 „Gefällt mir“

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