# Error when creating a new Badge

**URL:** <https://meta.discourse.org/t/error-when-creating-a-new-badge/121828>\
**Category:** Bug\
**Created:** [July 1, 2019, 8:47pm UTC](https://meta.discourse.org/t/error-when-creating-a-new-badge/121828 "2019-07-01T20:47:52Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [July 2, 2019, 9:54am UTC](https://meta.discourse.org/t/error-when-creating-a-new-badge/121828/4 "2019-07-02T09:54:13Z")

</div>

Taking a quick look at this, the create (Save) process fails if there is no badge query present. Fixed via:

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

Backported to beta and stable.

---

_[View the full topic](https://meta.discourse.org/t/error-when-creating-a-new-badge/121828)._
