Can break "Flag" buttons on topics and posts


(Roarke Lynch) #1

In Chrome, I am able to break the “Flag” buttons on topics and posts.

To reproduce the error:

  1. Press the “Flag” button for a topic.
  2. Close the popup by either clicking the “X” or clicking on the overlay.
  3. Now, press the “Flag” button on any post. It no longer works.
  4. After you have clicked the “Flag” button on a post, you also can no longer flag a topic.

Step 3 will log the following error in the Javascript Console:
Uncaught TypeError: Cannot read property 'get' of undefined


(Arpit Jalan) #2

Fixed via:

https://github.com/discourse/discourse/commit/e1d550305316d5120738a9238e0c4c389c169041


(Arpit Jalan) #3