CraftCMS v4.0.2 Release Notes
Release Date: 2022-05-11 // almost 2 years ago-
➕ Added
- ➕ Added
craft\events\LocateUploadedFilesEvent
. - Added
craft\fields\Assets::EVENT_LOCATE_UPLOADED_FILES
. (#11123)
🔄 Changed
- 🐎
elements/*
actions no longer include custom field values in the response data, improving performance. - Garnish menu buttons are now aware of the
disabled
attribute. (#11128) - 👌 Improved save performance for multi-site elements (#11113)
- 🔌 Built-in Composer actions now ensure that
composer.json
allows thecraftcms/plugin-installer
Composer plugin.
🛠 Fixed
- 🛠 Fixed an error that occurred when searching for elements by a custom field. (#11120)
- 🛠 Fixed a bug where asset upload failures weren’t being handled properly. (#11156)
- Fixed a bug where warning and error logs were being sent to both
stdout
andstderr
whenCRAFT_STREAM_LOG
was enabled. (#11189) - 🛠 Fixed an error that occurred when exporting elements with relational fields using the “Expanded” export type. (#11127)
- 🛠 Fixed a PHP deprecation warning that occurred if the
tablePrefix
database connection setting wasnull
. - 🛠 Fixed a bug where category groups were being identified as “{name}” in user permission lists. (#11132)
- 🛠 Fixed a bug where Assets fields’ “Upload files” buttons weren’t wrapping when there wasn’t enough space to show them alongside “Add an asset”. (#11133)
- 🛠 Fixed a bug where
Craft.getUrl()
was appending empty query strings to URLs when they weren’t needed. (#11159) - 🛠 Fixed a bug where addresses could validate the wrong set of required fields, if the validation rules were invoked before the country code was set. (#11162)
- 🛠 Fixed an error that could occur when viewing the Temporary Uploads volume, if the Temp Uploads Location asset setting was set to “In the local temp folder”. (#11192)
- 🛠 Fixed an error that could occur when deleting a volume, if its filesystem had been deleted.
- 🛠 Fixed an error that could occur when rendering the thumbnail preview for an asset, if its file was missing. (#11196)
- 🛠 Fixed a bug where soft-deleted drafts’ search keywords weren’t getting re-indexed if they were restored.
- 🛠 Fixed an error that occurred when transforming an SVG image without specifying a width or height. (#11122)
- 🛠 Fixed an error that occurred when saving a Number field with a non-numeric value. (#11164)
- 🛠 Fixed a bug where it wasn’t possible to drag an item to the top in admin tables. (#10781)
- 🛠 Fixed a bug where entries within Structure sections weren’t expandable if their only descendants were unpublished drafts.
- 🛠 Fixed a bug where expanding a collapsed Structure section entry wouldn’t reveal its descendants, if the parent was a draft. (#11186)
- 🛠 Fixed a bug where element caches weren’t getting cleared for elements when they were propagated to a newly-created site.
- ➕ Added