# 用户字段——奇怪的注册行为

**URL:** <https://meta.discourse.org/t/user-fields-weird-signup-behavior/320146>\
**Category:** Bug\
**Tags:** stable, user-custom-fields\
**Created:** [2024年八月5日 11:32 UTC](https://meta.discourse.org/t/user-fields-weird-signup-behavior/320146 "2024-08-05T11:32:46Z")\
**Posts on this page:** 1\
**Showing post:** 19

<div class="post-metadata">

**Author:** ![ted](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ted/32/283882_2.png) [@ted](https://meta.discourse.org/u/ted)\
**Post date:** [2024年九月17日 02:34 UTC](https://meta.discourse.org/t/user-fields-weird-signup-behavior/320146/19 "2024-09-17T02:34:51Z")

</div>

@ecki 抱歉。我没注意到你用的是 `stable` 版本。我已经打开了一个 PR 来向后移植这个修复。 🙏

> <https://github.com/discourse/discourse/pull/28939>
>
> \### What is this change?
> 
> Back port of #28541 to stable.
> 
> This check was che…cking the wrong scope, causing problems in certain edge conditions, for example:
> 
> 1. Admin adds an "on signup" field that isn't editable after signup.
> 2. Admin adds a "for all users" field.
> 3. User goes and fills up the "for all users" field from 2.
> 4. User is now stuck on the required fields page without any fields showing.
> 
> With this change, we only consider "for all users" fields when asking if required custom fields are filled in.

---

_[View the full topic](https://meta.discourse.org/t/user-fields-weird-signup-behavior/320146)._
