Nodebb: Re-ordering Pinned Topics no longer works

Created on 1 Jan 2019  路  12Comments  路  Source: NodeBB/NodeBB

  • NodeBB version: 1.11.1
  • NodeBB git hash: b0a44d866b08c1dc8b6d1c37364e8fa4fd21bf34
  • Database type: mongo
  • Database version: 3.6
  • Exact steps to cause this issue:

    1. Visit a category page with a lot of pinned topics
    2. Reorder some of the pinned topics
    3. Navigate away from the category page
    4. Navigate back to that category page
  • What you expected:

    • The pinned topics should be in the order that I created.
  • What happened instead:

    • The topics are not re-ordered.
bug

All 12 comments

The behavior is inconsistent. On one category, the re-order works fine. On another it doesn't work at all.

How many pinned topics are there?

Actually, now it's broken for both of those categories.

Maybe the re-order only works the first time?

Can you open your network console and post the data sent from the websocket call topics.orderPinnedTopics

Sample output from our forum when I order topics

image

Here's the output after I move the second one to the first position. It seems correct.

image

And does the topic id and the order match? Or is it showing the wrong id?

Yes, the order matches.

Thanks found the issue.

Thanks for looking into it and Happy New Year! 馃帀

@djensen47 Happy new year!

fyi this was happening due to the suggested topics widget having the same pinned topics and the jquery selector was finding those as well. Hence why you have 16 items in the array when you had only 8 pinned topics.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

AliCihan picture AliCihan  路  4Comments

tgmatt picture tgmatt  路  5Comments

julianlam picture julianlam  路  4Comments

sandratatarevicova picture sandratatarevicova  路  3Comments

FaizanZahid picture FaizanZahid  路  5Comments