1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Fixed Prefix order when moving a thread

Discussion in 'Resolved Bug Reports' started by Razasharp, Feb 7, 2014.

  1. Razasharp

    Razasharp Well-Known Member

    Seems to display in order created, rather than by order set/weight - I get confused every time as I'm expecting a certain order :p
     
  2. Mike

    Mike XenForo Developer Staff Member

    This works correctly for me. Can you give specific steps to reproduce? (Preferably with a simplified test case.)

    Note that if you have identical display orders, strictly speaking, the order will be undefined -- it could be displayed in either order.
     
    Divvens likes this.
  3. Razasharp

    Razasharp Well-Known Member

    Hi Mike

    I have a number of prefixes inside a group (and I have a few groups), they weighted/ordered correctly (although some in a different group were not - but they are now). In the ACP, and when posting a thread they are ordered correctly, however when you click on a thread and go to 'move thread', after selecting a different forum the prefixes are ordered incorrectly. You have to select a different forum though - otherwise they will be ordered correctly (more than one forum can have these particular prefixes).

    Let me know if you can't reproduce and I can get screen grabs or give you access.
     
  4. Mike

    Mike XenForo Developer Staff Member

    This is a weird one. The JSON was in the correct order. It looks like the JS object ends up in the wrong order due to the numeric keys in use.

    I've fixed this in 1.3 by simply using an array which maintains the order correctly. This does mean changing the keys of the output from that API call (hence, 1.3 only).
     
  5. Razasharp

    Razasharp Well-Known Member

    Glad you got it sorted Mike - and glad you were able to reproduce - was beginning to think I had Gremlins in the system :lol:
     

Share This Page