# Editing a topic with an invalid title will still push it to the top

**URL:** https://meta.discourse.org/t/editing-a-topic-with-an-invalid-title-will-still-push-it-to-the-top/39742
**Category:** Bug
**Created:** [17 Fevereiro , 2016 16:39 UTC](https://meta.discourse.org/t/editing-a-topic-with-an-invalid-title-will-still-push-it-to-the-top/39742 "2016-02-17T16:39:48Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Sander78](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sander78/32/296615_2.png) [@Sander78](https://meta.discourse.org/u/Sander78)
#### Post date: [17 Fevereiro , 2016 16:39 UTC](https://meta.discourse.org/t/editing-a-topic-with-an-invalid-title-will-still-push-it-to-the-top/39742/1 "2016-02-17T16:39:48Z")

</div>

Case:

- Create a topic with a valid title
- Wait til other topics appear (by other users, whatever)
- Go edit the title to something invalid, you’ll get an error that’s it’s not accepted
- Press the X to cancel the edit
- The topic will be pushed to the top as if it had been edited.

---

<div class="post-metadata">

### Author: ![shakti](https://avatars.discourse-cdn.com/v4/letter/s/b4bc9f/32.png) [@shakti](https://meta.discourse.org/u/shakti)
#### Post date: [19 Abril , 2016 09:45 UTC](https://meta.discourse.org/t/editing-a-topic-with-an-invalid-title-will-still-push-it-to-the-top/39742/2 "2016-04-19T09:45:29Z")

</div>

I have created the pull request for this issue.

[https://github.com/discourse/discourse/pull/4185](https://github.com/discourse/discourse/pull/4185)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [19 Abril , 2016 16:39 UTC](https://meta.discourse.org/t/editing-a-topic-with-an-invalid-title-will-still-push-it-to-the-top/39742/3 "2016-04-19T16:39:54Z")

</div>

We should fix this, @eviltrout can you review after header changes are in?

---

<div class="post-metadata">

### Author: ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)
#### Post date: [26 Abril , 2016 18:27 UTC](https://meta.discourse.org/t/editing-a-topic-with-an-invalid-title-will-still-push-it-to-the-top/39742/4 "2016-04-26T18:27:38Z")

</div>

Looks like @zogstrip merged it in 🙂

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [26 Abril , 2016 21:39 UTC](https://meta.discourse.org/t/editing-a-topic-with-an-invalid-title-will-still-push-it-to-the-top/39742/5 "2016-04-26T21:39:45Z")

</div>


