From ae64588a4963b06a093636be6686345bd3a9bca8 Mon Sep 17 00:00:00 2001 From: brandonkelly Date: Fri, 26 Apr 2019 11:52:10 -0700 Subject: [PATCH] Reserve 'behavior' and 'behaviors' field handles Resolves #4184 --- CHANGELOG-v3.md | 1 + src/base/Field.php | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG-v3.md b/CHANGELOG-v3.md index 5c32eea213c..8a3e1667747 100644 --- a/CHANGELOG-v3.md +++ b/CHANGELOG-v3.md @@ -5,6 +5,7 @@ ### Changed - Craft now registers its project config event handlers before loading plugins. ([#3943](https://github.com/craftcms/cms/issues/3943)) - The Control Panel now uses jQuery 3.4.0. ([#4183](https://github.com/craftcms/cms/issues/4183)) +- `behavior` and `behaviors` are now reserved field handles. ([#4184](https://github.com/craftcms/cms/issues/4184)) ### Fixed - Fixed an error where rebuilding the project config would not typecast the `propagateEntries` and `enableVersioning` section settings correctly. ([#3695](https://github.com/craftcms/cms/issues/3695)) diff --git a/src/base/Field.php b/src/base/Field.php index d9fc9dbdfa4..12d2fab6983 100644 --- a/src/base/Field.php +++ b/src/base/Field.php @@ -192,6 +192,8 @@ public function rules() 'archived', 'attributeLabel', 'attributes', + 'behavior', + 'behaviors', 'children', 'contentTable', 'dateCreated',