CraftCMS v4.2.6 Release Notes
Release Date: 2022-10-11 // over 1 year ago-
➕ Added
- ➕ Added the
--as-json
option to thehelp
command. (#12017, #12074) - ➕ Added
craft\helpers\ElementHelper::isAttributeEmpty()
. - ➕ Added
craft\queue\jobs\ResaveElements::$ifEmpty
. - ➕ Added
craft\queue\jobs\ResaveElements::$set
. - ➕ Added
craft\queue\jobs\ResaveElements::$to
. - ➕ Added
craft\queue\jobs\ResaveElements::$touch
.
🔄 Changed
- When passing a PHP callback function to the
--to
option of aresave/*
command, the$element
argument is now optional.
🗄 Deprecated
- 🍱 Deprecated
craft\web\assets\focusvisible\FocusVisibleAsset
. (#12037)
🛠 Fixed
- 🛠 Fixed an error that could occur when editing a draft of an element type that didn’t have change tracking enabled.
- 🛠 Fixed an error that could occur when saving an entry with Matrix blocks, if the entry had been deleted for a site.
- 🛠 Fixed a bug where
resave/*
commands weren’t respecting the--set
,--to
, or--touch
options when--queue
was passed. (#11974) - 🛠 Fixed a bug where
relatedTo
params didn’t support collections. - 🛠 Fixed an error that could occur when passing an element query to a
relatedTo
param, if the parent element query contained any closures. (#11981) - 🛠 Fixed a bug where
craft\log\MonologTarget::$allowLineBreaks
wasn’t getting a default value. (#12004) - 🛠 Fixed a PHP error that occurred when attempting to edit an element by an invalid ID or UUID.
- Fixed a bug where unsaved drafts could be unintentionally deleted when saved, if a plugin or module was blocking the save via
EVENT_BEFORE_SAVE
. (#12015) - 🛠 Fixed a bug where “Propagating tags” jobs would fail if two tags had similar titles.
- 🛠 Fixed a bug where pressing “Disable focal point” within asset preview modals would only reset the focal point position, but not delete it. (#12030)
- 🛠 Fixed a bug where image transforms weren’t getting sized correctly in some cases when
upscaleImages
was disabled. (#12023) - 🛠 Fixed a bug where table cells within Redactor fields could appear to be focused when they weren’t. (#12001, #12037)
- 🛠 Fixed a bug where alerts saying a folder can’t be renamed due to a naming conflict were showing the old folder name instead of the new one. (#12049)
- 🛠 Fixed a bug where custom fields nested within Matrix fields weren’t always updating properly within slideout editors. (#11988, #12058)
- 🛠 Fixed an error that could occur when adding new textual condition rules to a condition. (#12077)
- 🛠 Fixed a bug where Table fields’ Default Values settings were always showing at least one row, even if the setting had been saved without any rows. (#12071)
- 🛠 Fixed a bug where existing rows in Table fields’ Default Values settings were losing the ability to be reordered or deleted when the table columns were changed.
- 🛠 Fixed a bug where sending a password reset email for an inactive user would set them to a pending state. (#12080)
- 🛠 Fixed a bug where some GraphQL results could be missing if multiple sets of nested elements were being queried using the same alias. (#11982)
🔒 Security
- 🛠 Fixed information disclosure vulnerabilities.
- ➕ Added the