Skip to content

Commit

Permalink
Make relatedTo* reserved field handles
Browse files Browse the repository at this point in the history
Resolves #14075
  • Loading branch information
brandonkelly committed Dec 27, 2023
1 parent a393484 commit 37e0c6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

## Unreleased

- `relatedToAssets`, `relatedToCategories`, `relatedToEntries`, `relatedToTags`, and `relatedToUsers` are now reserved user field handles. ([#14075](https://github.com/craftcms/cms/issues/14075))
- `craft\services\Security::$sensitiveKeywords` is no longer case-sensitive. ([#14064](https://github.com/craftcms/cms/discussions/14064))
- Fixed a bug where the `index-assets/cleanup` command accepted `--cache-remote-images`, `--create-missing-assets`, and `--delete-missing-assets` options, even though they didn’t do anything.
- Fixed a bug where automatically-created relations could be lost when a new site was added to an entry. ([#14065](https://github.com/craftcms/cms/issues/14065))
Expand Down
5 changes: 5 additions & 0 deletions src/base/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,11 @@ protected function defineRules(): array
'propagateAll',
'propagating',
'ref',
'relatedToAssets',
'relatedToCategories',
'relatedToEntries',
'relatedToTags',
'relatedToUsers',
'resaving',
'revisionId',
'rgt',
Expand Down

0 comments on commit 37e0c6e

Please sign in to comment.