From a145e24fd2bec5c8789be99ac4ce796c70f628fc Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Tue, 31 Oct 2017 11:18:50 +1300 Subject: [PATCH] DOCS Upgrade path for CompositeField::setID() Fixes #7264 --- .upgrade.yml | 4 +++- docs/en/04_Changelogs/4.0.0.md | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.upgrade.yml b/.upgrade.yml index 1cd85c1f9..a14a73482 100644 --- a/.upgrade.yml +++ b/.upgrade.yml @@ -1150,6 +1150,8 @@ warnings: message: 'Removed' 'dontEscape()': message: 'FormField::dontEscape() has been removed. Escaping is now managed on a class by class basis.' + 'SilverStripe\Forms\CompositeField::setID()': + message: 'ID is generated from name indirectly; Use SilverStripe\Form\FormField::setName() instead' 'SilverStripe\Forms\FormField::createTag()': message: 'moved to SilverStripe\View\HTML->createTag()' 'SilverStripe\Forms\Form->transformTo()': @@ -1370,4 +1372,4 @@ warnings: url: 'https://docs.silverstripe.org/en/4/changelogs/4.0.0#module-paths' 'THIRDPARTY_DIR': message: 'Path constants have been deprecated, use the Requirements and ModuleResourceLoader APIs' - url: 'https://docs.silverstripe.org/en/4/changelogs/4.0.0#module-paths' \ No newline at end of file + url: 'https://docs.silverstripe.org/en/4/changelogs/4.0.0#module-paths' diff --git a/docs/en/04_Changelogs/4.0.0.md b/docs/en/04_Changelogs/4.0.0.md index 9defd7f92..7e4920891 100644 --- a/docs/en/04_Changelogs/4.0.0.md +++ b/docs/en/04_Changelogs/4.0.0.md @@ -2190,6 +2190,8 @@ appropriate mime types. The following file manipulations classes and methods hav submission, in contrast to `FormField::setValue($value, $data)` which is intended to load its value from the ORM. The second argument to `setValue()` has been added. * `FormField::create_tag()` moved to `SilverStripe\View\HTML->createTag()`. +* `CompositeField::setID()` is removed. ID is generated from name indirectly. + Use SilverStripe\Form\FormField::setName() instead * Changed `ListboxField` to multiple only. Previously, this field would operate as either a single select (default) or multi-select through `setMultiple()`. Now this field should only be used for multi-selection. Single-selection should be done using