# Auto-Close dialogue shows \[object Object\] when tick box is invoked before topic close time

**URL:** https://meta.discourse.org/t/auto-close-dialogue-shows-object-object-when-tick-box-is-invoked-before-topic-close-time/51682
**Category:** Bug
**Created:** [10월 18, 2016, 10:21오전 UTC](https://meta.discourse.org/t/auto-close-dialogue-shows-object-object-when-tick-box-is-invoked-before-topic-close-time/51682 "2016-10-18T10:21:20Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Pugwash](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pugwash/32/3760_2.png) [@Pugwash](https://meta.discourse.org/u/Pugwash)
#### Post date: [10월 18, 2016, 10:21오전 UTC](https://meta.discourse.org/t/auto-close-dialogue-shows-object-object-when-tick-box-is-invoked-before-topic-close-time/51682/1 "2016-10-18T10:21:20Z")

</div>

##Steps to reproduce:

1. As an Admin click on spanner icon top right within a topic.
2. Select “ **Auto Close** ”.
3. Check the box “ **Don’t close until..** ” before entering any time or number of hours.

 ![](https://global.discourse-cdn.com/meta/original/3X/1/9/196aeeaddacc87a28c15cbf996c9ddba62a4aef0.png)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [10월 19, 2016, 5:12오전 UTC](https://meta.discourse.org/t/auto-close-dialogue-shows-object-object-when-tick-box-is-invoked-before-topic-close-time/51682/2 "2016-10-19T05:12:50Z")

</div>

I think this is what the author intended, but not 100% sure

@techAPJ (I think) please review and close 🙂

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

---

<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월 19, 2016, 5:45오전 UTC](https://meta.discourse.org/t/auto-close-dialogue-shows-object-object-when-tick-box-is-invoked-before-topic-close-time/51682/3 "2016-10-19T05:45:01Z")

</div>

Looks good, thanks for the fix @sam! Just pushed another minor fix 🙂

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

---

<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월 19, 2016, 5:45오전 UTC](https://meta.discourse.org/t/auto-close-dialogue-shows-object-object-when-tick-box-is-invoked-before-topic-close-time/51682/4 "2016-10-19T05:45:04Z")

</div>


