Trying to un-delete a deleted topic doesn't work, found error in logs

AI-generated summary

A user, chapel, reported a bug where attempting to un-delete a deleted topic didn’t work. They found an error in the admin logs, which indicated that nothing handled the action ‘recoverTopic’. zogstrip confirmed the bug and later fixed it, pushing the fix to GitHub (commit).

I accidentally deleted a topic that I didn’t intend to, when I went back to un-delete it through the mod panel, it didn’t appear to do anything. Subsequent clicks of un-delete did nothing as well.

Looking at the admin error logs, I found this:

Error: Nothing handled the action 'recoverTopic'. If you did handle the action, this error can be caused by returning true from an action handler in a controller, causing the action to bubble.
    at new Error (native)
    at Error.n (http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:8:3118)
    at Object.E [as triggerEvent] (http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:10:13391)
    at l (http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:15:5757)
    at Object.u.trigger (http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:14:29924)
    at V.extend.send (http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:10:16729)
    at o.create.send (http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:11:16316)
    at o.create.send (http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:11:16316)
    at http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:9:11716
    at Object.s.run (http://discourse.wastingyourlife.co/assets/vendor-514d538a8a080bf81791da4c2da01aab.js:5:543)
2 Mi Piace

Legit bug :+1: Will fix it.

2 Mi Piace

Thanks :smile:

If I wasn’t busy I would have looked into a fix but at the very least a post here seemed appropriate.

Thanks for reporting that :+1: I just pushed a fix :leopard:

https://github.com/discourse/discourse/commit/65f0339146e8b741cb82d053c5ba45675d1d2c5d

3 Mi Piace