You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Account Status handles are not included in the list of reserved handles (found in cms/src/base/Field.php), which causes issues when creating new fields.
Steps to reproduce
Use any of the account status handles ("Active", "Pending", "Suspended", "Locked", "Inactive") when creating a new field handle.
No error pops up to warn the dev that these cannot be used, they are able to be created and used throughout the site.
Expected behavior
They should not be able to be used as field names since they reference specific user attributes that are hard coded into the CMS.
Actual behavior
The fields work as intended by the dev in most of the CMS, but issues arise when these field names are referenced in relation to account holders. At that point (when referencing users), they work as intended by the CMS (referencing the account status) instead of as intended by the dev.
Craft CMS version
craft4
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered:
What happened?
Description
The Account Status handles are not included in the list of reserved handles (found in cms/src/base/Field.php), which causes issues when creating new fields.
Steps to reproduce
Expected behavior
They should not be able to be used as field names since they reference specific user attributes that are hard coded into the CMS.
Actual behavior
The fields work as intended by the dev in most of the CMS, but issues arise when these field names are referenced in relation to account holders. At that point (when referencing users), they work as intended by the CMS (referencing the account status) instead of as intended by the dev.
Craft CMS version
craft4
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
The text was updated successfully, but these errors were encountered: