# 解決策の引用は、投稿に投票が含まれている場合は展開されない

**URL:** https://meta.discourse.org/t/quote-of-solution-does-not-expand-if-post-contains-poll/89540
**Category:** Bug
**Tags:** solved
**Created:** [2018 年 6 月 10 日午前 9:48 UTC](https://meta.discourse.org/t/quote-of-solution-does-not-expand-if-post-contains-poll/89540 "2018-06-10T09:48:18Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Stefan\_Fairphone](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stefan_fairphone/32/119580_2.png) [@Stefan\_Fairphone](https://meta.discourse.org/u/Stefan_Fairphone)
#### Post date: [2018 年 6 月 10 日午前 9:48 UTC](https://meta.discourse.org/t/quote-of-solution-does-not-expand-if-post-contains-poll/89540/1 "2018-06-10T09:48:18Z")

</div>

Hello, we are using the solved plugin on our forum. If I mark a post that contains a poll as “solved” and then go up to the first post, I cannot expand the solution. It just stays at “loading…”:

 ![grafik](https://global.discourse-cdn.com/meta/original/3X/9/a/9ab6720f70acbb00d4d7aea0ee59edddebc59822.png)

[Here](https://forum.fairphone.com/t/playground-features-of-this-forum/28?u=stefan) is a live demonstration of this.

### What should happen

The quote of the solution in the first post should expand.

### What happens instead

The quote’s text disappears and instead “loading…” is displayed indefinitely.

### Steps to reproduce

1. Create a poll in a post.
2. Mark that post as “solved” using the solved-plugin.
3. Go up to the first post and expand the quote of the solution.
4. The solution simply displays “loading…”

### Technical details

- Discourse version: 1.9.4
- Tested on Firefox 60.0.2 and Edge 42.17134.1.0

---

<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: [2018 年 6 月 10 日午前 10:06 UTC](https://meta.discourse.org/t/quote-of-solution-does-not-expand-if-post-contains-poll/89540/2 "2018-06-10T10:06:53Z")

</div>

Unless you can repro this in the current stable version 2.0 it’s unlikely we’ll look at it.

---

<div class="post-metadata">

### Author: ![Stefan\_Fairphone](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stefan_fairphone/32/119580_2.png) [@Stefan\_Fairphone](https://meta.discourse.org/u/Stefan_Fairphone)
#### Post date: [2018 年 6 月 13 日午後 1:58 UTC](https://meta.discourse.org/t/quote-of-solution-does-not-expand-if-post-contains-poll/89540/3 "2018-06-13T13:58:08Z")

</div>

Reproduced in 2.0.1

* * *

_PS.: Although, according to [this representative poll](https://forum.fairphone.com/t/playground-features-of-this-forum/28/146?u=stefan), 75% of people say that polls don’t break the solved plugin._ 😹

---

<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: [2018 年 6 月 13 日午後 8:48 UTC](https://meta.discourse.org/t/quote-of-solution-does-not-expand-if-post-contains-poll/89540/4 "2018-06-13T20:48:46Z")

</div>

All right, thanks for verifying that. @neil maybe you can have a look this week? I suspect we’re hitting a JS error when loading the post on expand.

---

<div class="post-metadata">

### Author: ![neil](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/neil/32/102150_2.png) [@neil](https://meta.discourse.org/u/neil)
#### Post date: [2018 年 6 月 18 日午後 4:38 UTC](https://meta.discourse.org/t/quote-of-solution-does-not-expand-if-post-contains-poll/89540/6 "2018-06-18T16:38:55Z")

</div>

Part 1 is done, which is the error and being stuck with “Loading…”. But part 2 is fixing this:

 ![Help_me_answer_this_question_-Whatevs-_Discourse](https://global.discourse-cdn.com/meta/original/3X/1/6/164ae322d630664e9f2eac149d901cf428c63628.png)

Expanding the quote doesn’t render the poll correctly. I think it’s because the solved plugin doesn’t provide a decorator, which the poll plugin needs. I guess it needs to do it the same way that expanding replies handles it.

[https://github.com/discourse/discourse-solved/blob/master/assets/javascripts/discourse/initializers/extend-for-solved-button.js.es6#L124](https://github.com/discourse/discourse-solved/blob/master/assets/javascripts/discourse/initializers/extend-for-solved-button.js.es6#L124)

---

<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: [2018 年 6 月 18 日午後 11:18 UTC](https://meta.discourse.org/t/quote-of-solution-does-not-expand-if-post-contains-poll/89540/7 "2018-06-18T23:18:25Z")

</div>

Just having it not error is fine for now, I wouldn’t spend a bunch more time on this.

---

<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: [2020 年 11 月 4 日午前 3:17 UTC](https://meta.discourse.org/t/quote-of-solution-does-not-expand-if-post-contains-poll/89540/8 "2020-11-04T03:17:42Z")

</div>


