# 无法更改分配频率偏好

**URL:** https://meta.discourse.org/t/unable-to-change-assign-frequency-preference/165792
**Category:** Bug
**Created:** [2020年九月29日 22:35 UTC](https://meta.discourse.org/t/unable-to-change-assign-frequency-preference/165792 "2020-09-29T22:35:04Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![olegbc1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/olegbc1/32/154008_2.png) [@olegbc1](https://meta.discourse.org/u/olegbc1)
#### Post date: [2020年九月29日 22:35 UTC](https://meta.discourse.org/t/unable-to-change-assign-frequency-preference/165792/1 "2020-09-29T22:35:04Z")

</div>

只是想提一下，当前这个插件存在一个问题。我无法在用户偏好设置中更改“消息通知频率”选项。如果点击“每日”以外的任何选项，下拉菜单会关闭并仍停留在“每日”。

 ![image](https://global.discourse-cdn.com/meta/original/3X/0/5/0550e31e5953044017c58698f490d40f35eb7696.png)

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2020年九月30日 00:55 UTC](https://meta.discourse.org/t/unable-to-change-assign-frequency-preference/165792/2 "2020-09-30T00:55:56Z")

</div>

我认为这是一个 bug。我可以在 Meta 和本地开发环境中复现该问题。如果我从下拉菜单中选择一个与当前分配的专题提醒频率不同的频率，所选频率不会显示为下拉菜单的选中项。点击“保存”按钮确实会保存新的频率，但页面需要进行硬刷新才能显示新的频率。

已在 Ubuntu 系统的最新版 Chrome 浏览器上测试。

---

<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: [2020年九月30日 01:31 UTC](https://meta.discourse.org/t/unable-to-change-assign-frequency-preference/165792/3 "2020-09-30T01:31:39Z")

</div>

这和你 @j.jaffeux 的工作有关吗？

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2020年九月30日 08:37 UTC](https://meta.discourse.org/t/unable-to-change-assign-frequency-preference/165792/5 "2020-09-30T08:37:57Z")

</div>

看起来与最近的工作无关，但很有意思：

> <https://github.com/discourse/discourse-assign/pull/114>
>
> Before this commit, changing the value of the reminder frequency on a user notif…ications page was not working.
> 
> This commit also get rid of a few deprecations warning.

我修复了多个弃用警告，简化了代码，并移除了一些反模式。合并后应该就能解决了 ~~一旦合并~~ 。

---

<div class="post-metadata">

### Author: ![j.jaffeux](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/j.jaffeux/32/60297_2.png) [@j.jaffeux](https://meta.discourse.org/u/j.jaffeux)
#### Post date: [2020年九月30日 13:41 UTC](https://meta.discourse.org/t/unable-to-change-assign-frequency-preference/165792/6 "2020-09-30T13:41:20Z")

</div>


