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


(Jacob Chapel) #1

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)

(Régis Hanol) #2

Legit bug :+1: Will fix it.


(Jacob Chapel) #3

Thanks :smile:

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


(Régis Hanol) #4

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

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


(Régis Hanol) #5