# Can break "Flag" buttons on topics and posts

**URL:** https://meta.discourse.org/t/can-break-flag-buttons-on-topics-and-posts/34930
**Category:** Bug
**Created:** [10월 26, 2015, 2:41오후 UTC](https://meta.discourse.org/t/can-break-flag-buttons-on-topics-and-posts/34930 "2015-10-26T14:41:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![roarkely](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roarkely/32/45644_2.png) [@roarkely](https://meta.discourse.org/u/roarkely)
#### Post date: [10월 26, 2015, 2:41오후 UTC](https://meta.discourse.org/t/can-break-flag-buttons-on-topics-and-posts/34930/1 "2015-10-26T14:41:56Z")

</div>

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`

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [10월 26, 2015, 5:54오후 UTC](https://meta.discourse.org/t/can-break-flag-buttons-on-topics-and-posts/34930/2 "2015-10-26T17:54:53Z")

</div>

Fixed via:

[https://github.com/discourse/discourse/commit/e1d550305316d5120738a9238e0c4c389c169041](https://github.com/discourse/discourse/commit/e1d550305316d5120738a9238e0c4c389c169041)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [10월 26, 2015, 5:59오후 UTC](https://meta.discourse.org/t/can-break-flag-buttons-on-topics-and-posts/34930/3 "2015-10-26T17:59:47Z")

</div>


