[Bug] Comment editing non-functional

When submitting an edited comment in the solutions pages, nothing happens: i.e. the comment remains open in “editable” mode, the submit/cancel buttons remain active.

The console logs this (vendors.5b9efc3f.js:6):

TypeError: k.comment.edit is not a function
    at o.k.submitEdit (https://www.codingame.com/codingame.ecadd589.js:6:20680)
    at f.fn (https://www.codingame.com/codingame.ecadd589.js:6:20016)
    at f.doAction (https://www.codingame.com/codingame.ecadd589.js:11:24710)
    at fn (eval at compile (https://www.codingame.com/vendors.5b9efc3f.js:8:13781), <anonymous>:4:303)
    at b (https://www.codingame.com/vendors.5b9efc3f.js:6:18903)
    at e (https://www.codingame.com/vendors.5b9efc3f.js:9:2109)
    at o.$eval (https://www.codingame.com/vendors.5b9efc3f.js:6:28979)
    at o.$apply (https://www.codingame.com/vendors.5b9efc3f.js:6:29212)
    at HTMLButtonElement.<anonymous> (https://www.codingame.com/vendors.5b9efc3f.js:9:2161)
    at HTMLButtonElement.dispatch (https://www.codingame.com/vendors.5b9efc3f.js:2:14465)
    at HTMLButtonElement.q.handle (https://www.codingame.com/vendors.5b9efc3f.js:2:11242) undefined

We cannot reproduce here, do you have more details?
Which browser? which puzzle? which solution?

Keep coding

Dunno how to link to comments more specifically, but it’s the “20 sept. 2016 14:06:26” one on https://www.codingame.com/training/community/near-palindromes/solution?id=4433856

Browser currently is Chrome 53.0.2785.116 m on Win7.

It reproduces after a big refresh or a fresh login in private mode. It also reproduces in Firefox.

And that happens only on this specific comment? Is there something particular on it? (we can’t access it easily, we’d need to solve the puzzle in perl too :P)

It’s the only one I have that’s in such dire need of editing :slight_smile:
I’ve tried on this one https://www.codingame.com/training/easy/onboarding/solution?id=1815013 and it seems to edit just fine. Maybe only for comments old enough?

I’ve tried on this older comment here https://www.codingame.com/contributions/view/3883d8d5b068b603f12fab47f003f094392 and it worked.

This is getting confusing.

Reproduced the same symptoms on a slightly different scenario while attempting to post an answer to Zexion’s comment here: https://www.codingame.com/contributions/view/46851c0fe09e7e9725ad1f768d091234bf9
(should be publicly available even if you haven’t solved it in Perl)

The console log is very slightly different (vendors.5b9efc3f.js:6):

TypeError: Cannot read property 'modeHourOfCode' of undefined
    at Object.r [as requireLogin] (https://static.codingame.com/codingame.d27988c3.js:14:21288)
    at Object.submitComment (https://static.codingame.com/codingame.d27988c3.js:12:21205)
    at i.submitResponse (https://static.codingame.com/codingame.d27988c3.js:12:19996)
    at o.g.submit (https://static.codingame.com/codingame.d27988c3.js:6:24702)
    at fn (eval at compile (https://static.codingame.com/vendors.5b9efc3f.js:8:13781), <anonymous>:4:209)
    at b (https://static.codingame.com/vendors.5b9efc3f.js:6:18903)
    at e (https://static.codingame.com/vendors.5b9efc3f.js:9:2109)
    at o.$eval (https://static.codingame.com/vendors.5b9efc3f.js:6:28979)
    at o.$apply (https://static.codingame.com/vendors.5b9efc3f.js:6:29212)
    at HTMLButtonElement.<anonymous> (https://static.codingame.com/vendors.5b9efc3f.js:9:2161)
    at HTMLButtonElement.dispatch (https://static.codingame.com/vendors.5b9efc3f.js:2:14465)
    at HTMLButtonElement.q.handle (https://static.codingame.com/vendors.5b9efc3f.js:2:11242) undefined

It reproduces across the browsers I’ve got installed here.

Fixed in dev, waiting merge.

That was fast!