# 用户字段要求（2）

**URL:** https://meta.discourse.org/t/user-field-requirement-2/318968
**Category:** Bug
**Tags:** user-custom-fields, fixed
**Created:** [2024年七月29日 09:15 UTC](https://meta.discourse.org/t/user-field-requirement-2/318968 "2024-07-29T09:15:03Z")
**Posts on this page:** 1
**Showing post:** 11

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年七月30日 05:34 UTC](https://meta.discourse.org/t/user-field-requirement-2/318968/11 "2024-07-30T05:34:09Z")

</div>

为了再次确认，您是否已更新以合并我在另一个主题中提到的修复程序？

> [@JammyDodger](#):
>
> 正在跟进进展，我相信修复程序已经到位 🥳

> <https://github.com/discourse/discourse/pull/27888>
>
> \### What is the problem?
> 
> We have recently added a new option to add user fiel…ds required for existing users. This is in contrast to requiring fields only on sign-up.
> 
> This revealed an existing problem. Consider the following:
> 
> 1. User A signs up.
> 2. Admin adds a new user field required on sign-up. (Should not apply to User A since they already signed up.)
> 3. User A tries to update their profile.
> 
> \*\*Expected behaviour:\*\*
> 
> No problem.
> 
> \*\*Actual behaviour:\*\*
> 
> User A receives an error saying they didn't fill up all required fields.
> 
> 
> \### How does this fix it?
> 
> When updating profile, we only check that required fields that are "for all users" are filled. Additionally, we check that fields that were required on sign-up and have previously been filled are not blanked out.

---

_[View the full topic](https://meta.discourse.org/t/user-field-requirement-2/318968)._
