# 更改用户组顺序不会改变标题

**URL:** <https://meta.discourse.org/t/changing-the-order-of-the-groups-of-a-user-does-not-change-the-title/74529>\
**Category:** Bug\
**Created:** [2017年十一月21日 17:24 UTC](https://meta.discourse.org/t/changing-the-order-of-the-groups-of-a-user-does-not-change-the-title/74529 "2017-11-21T17:24:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [2017年十一月21日 17:24 UTC](https://meta.discourse.org/t/changing-the-order-of-the-groups-of-a-user-does-not-change-the-title/74529/1 "2017-11-21T17:24:56Z")

</div>

继续讨论之前的主题：[若无当前主组，添加设置主组的选项](https://meta.discourse.org/t/add-option-to-set-primary-group-if-no-current-primary-group/72050/8)：

在最近的更新中，我注意到引入了该功能。

问题在于，如果您更改组的顺序，用户的头衔不会随之改变，而是保留其最初加入的第一个组的头衔。

以我的情况为例，我有两名用户最初加入了 _alpha\_tester_ 组。几天后，他们向 Patreon 进行了捐赠，并自动被添加到 _supporter_ 组。

我通过管理面板手动更改了组：

![6MSySNO](https://global.discourse-cdn.com/meta/original/4X/a/5/b/a5b1dded74e748adaa03fe9566f25b63bffe7ade.png)  
现在可以看到他们的主组是 _supporter_，但头衔仍然是 _alpha\_tester_：

 ![dZ0n0XL](https://global.discourse-cdn.com/meta/original/4X/7/f/d/7fdfa681fd6119df44e3e0f6204b2b7e118a2e2e.png)  
为了测试，我将 _supporter_ 组改为主组（原本不是），以查看这是否是问题所在。

 ![TWD5TA6](https://global.discourse-cdn.com/meta/original/4X/9/4/5/945b7878c669de3d66d8ecd780c5c294dc419cb6.png)  
由于在昨天的更新之前，我将用户从一个组移动到另一个组（无论是主组还是非主组）都没有任何问题，因此我推测最近的更改可能引入了一个潜在的漏洞。

---

<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年三月3日 00:15 UTC](https://meta.discourse.org/t/changing-the-order-of-the-groups-of-a-user-does-not-change-the-title/74529/2 "2018-03-03T00:15:31Z")

</div>

Is this still an issue?

---

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [2018年三月3日 12:39 UTC](https://meta.discourse.org/t/changing-the-order-of-the-groups-of-a-user-does-not-change-the-title/74529/3 "2018-03-03T12:39:03Z")

</div>

Yes, it is still valid at least on v2.0.0.beta3 +51.

---

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [2018年十一月13日 11:07 UTC](https://meta.discourse.org/t/changing-the-order-of-the-groups-of-a-user-does-not-change-the-title/74529/4 "2018-11-13T11:07:39Z")

</div>

Now solved via

> [@User in multiple groups, title display and group link don't match](https://meta.discourse.org/t/user-in-multiple-groups-title-display-and-group-link-dont-match/96502/22):
>
> I’ve made two changes that can hopefully make the flow a bit more intuitive. muscle If the user’s title is granted by their primary group, we will keep the title in sync when switching primary groups. ([FEATURE: match user title when primary group changes by xrav3nz · Pull Request #6404 · discourse/discourse · GitHub](https://github.com/discourse/discourse/pull/6404)) When removing a title (due to leaving a group, etc), we will now automatically grant the user another of their available titles. This favors primary group title over the ot…

🤩

---

<div class="post-metadata">

**Author:** ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)\
**Post date:** [2018年十一月13日 11:07 UTC](https://meta.discourse.org/t/changing-the-order-of-the-groups-of-a-user-does-not-change-the-title/74529/5 "2018-11-13T11:07:48Z")

</div>


