Skip to content

Commit

Permalink
New validation-themed reserved field handles
Browse files Browse the repository at this point in the history
Resolves #3032
  • Loading branch information
brandonkelly committed Jun 26, 2018
1 parent fdac354 commit 0678eb4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG-v3.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
- The PHP Info utility no longer displays the original values for settings and only the current environment value. ([#2990](https://github.com/craftcms/cms/issues/2990))
- Loosened up most of Craft’s Composer dependency constraints.
- Craft no longer publishes asset thumbnails to the `cpresources/` folder.
- `attributes`, `error`, `errors`, and `scenario` are now reserved field handles. ([#3032](https://github.com/craftcms/cms/issues/3032))
- `craft\web\UrlManager::createUrl()`, `createAbsoluteUrl()`, and `getMatchedElement()` now log warnings if they’re called before Craft has been fully initialized. ([#3028](https://github.com/craftcms/cms/issues/3028))

### Deprecated
Expand Down
4 changes: 4 additions & 0 deletions src/base/Field.php
Original file line number Diff line number Diff line change
Expand Up @@ -172,12 +172,15 @@ public function rules()
'reservedWords' => [
'archived',
'attributeLabel',
'attributes',
'children',
'contentTable',
'dateCreated',
'dateUpdated',
'enabled',
'enabledForSite',
'error',
'errors',
'fieldValue',
'id',
'level',
Expand All @@ -193,6 +196,7 @@ public function rules()
'ref',
'rgt',
'root',
'scenario',
'searchScore',
'siblings',
'site',
Expand Down

0 comments on commit 0678eb4

Please sign in to comment.