# Quoting from closed topic

**URL:** <https://meta.discourse.org/t/quoting-from-closed-topic/54843>\
**Category:** Bug\
**Created:** [December 27, 2016, 8:57pm UTC](https://meta.discourse.org/t/quoting-from-closed-topic/54843 "2016-12-27T20:57:56Z")\
**Posts on this page:** 4\
**Page:** 1

## AI-generated summary

The discussion highlights a bug where quoting a post from a closed topic while editing a reply causes the current editor to be discarded and replaced with a new topic reply. [david](/t/-/54843/1) reports that navigating to a closed topic and selecting text triggers an unexpected confirmation dialog; accepting it deletes the ongoing work. He suggests the logic should only trigger if the composer is not already open, linking to a suspect commit. [codinghorror](/t/-/54843/2) confirms this is a bug and agrees that the logic should only fire if no editor is open. [eviltrout](/t/-/54843/3) provides a fix via a new commit to address the issue.

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [December 27, 2016, 8:57pm UTC](https://meta.discourse.org/t/quoting-from-closed-topic/54843/1 "2016-12-27T20:57:56Z")

</div>

Continuing the discussion from [Quote post from closed topic](https://meta.discourse.org/t/quote-post-from-closed-topic/26480/13):

If I’m currently editing a reply to a thread, I like to browse around the forum to find other quotes. I would then select some text, and click “quote” to add the quote to my current post. This works really well.

However, if I navigate onto a closed topic, and try and quote something from it, I get this message

 ![](https://global.discourse-cdn.com/meta/original/3X/7/7/7732ef72f81ffcc9e7e3fb597d3995c0364bf4be.png)  
and then if I click ‘Yes’, it deletes what I’ve been working on and does a fresh “reply as new topic”.

I would expect “reply as new topic” to only happen only if the composer is not open

Suspect it is related to this commit:  
[https://github.com/discourse/discourse/commit/298098745ee43128b18918b161f9669c04dde212](https://github.com/discourse/discourse/commit/298098745ee43128b18918b161f9669c04dde212)

---

<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:** [December 27, 2016, 10:42pm UTC](https://meta.discourse.org/t/quoting-from-closed-topic/54843/2 "2016-12-27T22:42:29Z")

</div>

I see so this is a bit of a bug @eviltrout that logic should only fire if there is not an editor already open.

---

<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:** [January 3, 2017, 6:03pm UTC](https://meta.discourse.org/t/quoting-from-closed-topic/54843/3 "2017-01-03T18:03:59Z")

</div>

This fixes it, thanks for letting me know:

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

---

<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:** [January 3, 2017, 6:04pm UTC](https://meta.discourse.org/t/quoting-from-closed-topic/54843/4 "2017-01-03T18:04:03Z")

</div>

Closed on January 3, 2017, 6:04pm UTC


