Releases: craftcms/cms
Releases · craftcms/cms
5.2.8
- Fixed a bug where element index result counts weren’t getting updated when the element list was refreshed but pagination was preserved. (#15367)
- Fixed a SQL error that could occur when sorting by custom fields on MariaDB.
- Fixed a bug where embedded element indexes could include table columns for all custom fields associated with the element type. (#15373)
5.2.7
craft\helpers\UrlHelper::actionUrl()
now returns URLs based on the primary site’s base URL (if it has one), for console requests if the@web
alias wasn’t explicitly defined.- An exception is now thrown when attempting to save an entry that’s missing
sectionId
orfieldId
+ownerId
values. (#15345) - Fixed a bug where it wasn’t possible to expand/collapse descendants of disabled table rows within element select modals. (#15337)
- Fixed a bug where PhpStorm autocomplete wasn’t working when chaining custom field methods defined by
CustomFieldBehavior
. (#15336) - Fixed a bug where new nested entries created on newly-created elements weren’t getting duplicated to all other sites for the owner element. (#15321)
- Fixed a bug where focus could jump unexpectedly when a slideout was opened. (#15314)
- Fixed a bug where addresses were getting truncated within address cards. (#15338)
- Fixed a bug where TOTP setup keys included an extra space at the end. (#15349)
- Fixed a bug where input focus could automatically jump to slideout sidebars shortly after they were shown. (#15314)
- Fixed an error that occurred if the SMTP mailer transport type was used, and the Hostname value was blank. (#15342)
- Fixed a bug where database DML changes weren’t getting rolled back after tests were run if the Codeception config had
transaction: true
. (#7615) - Fixed an error that could occur when saving recursively-nested elements. (#15362)
- Fixed a styling issue. (#15315)
- Fixed a bug where field status indicators within Matrix fields weren’t positioned correctly.
- Fixed a bug where Matrix changes could be lost if the
autosaveDrafts
config setting was set tofalse
. (#15353)
4.10.6
craft\helpers\UrlHelper::actionUrl()
now returns URLs based on the primary site’s base URL (if it has one), for console requests if the@web
alias wasn’t explicitly defined.- Fixed a bug where it wasn’t possible to expand/collapse descendants of disabled table rows within element select modals. (#15337)
- Fixed a bug where PhpStorm autocomplete wasn’t working when chaining custom field methods defined by
CustomFieldBehavior
. (#15336) - Fixed a bug where new Matrix blocks created on newly-created elements weren’t getting duplicated to all other sites for the owner element. (#15321)
- Fixed a bug where focus could jump unexpectedly when a slideout was opened. (#15314)
5.2.6
Note
Craft now sends no-cache headers for requests that generate/retrieve a CSRF token. If your Craft install is behind a static caching service like Cloudflare, enable the asyncCsrfInputs config setting to avoid a significant cache hit reduction. (#15293, #15281)
- Craft now sends no-cache headers for any request that calls
craft\web\Request::getCsrfToken()
. (#15293, #15281) - Fixed a bug where structures’ Max Levels settings weren’t being enforced when dragging elements with collapsed descendants. (#15310)
- Fixed a bug where
craft\helpers\ElementHelper::isDraft()
,isRevision()
, andisDraftOrRevision()
weren’t returningtrue
if a nested draft/revision element was passed in, but the root element was canonical. (#15303) - Fixed a bug where focus could be trapped within slideout sidebars. (#15314)
- Fixed a bug where element slideout sidebars were included in the focus order when hidden. (#15332)
- Fixed a bug where field status indicators weren’t visible on mobile viewports.
- Fixed a bug where sorting elements by custom field within element indexes wasn’t always working. (#15297)
- Fixed a bug where asset bulk element actions were available when folders were selected. (#15301)
- Fixed a bug where element thumbnails weren’t always getting loaded. (#15299)
- Fixed an error that occurred when attempting to save a user via the Command/Ctrl + S keyboard shortcut within a slideout. (#15307)
- Fixed a bug where “Delete heading” buttons within Customize Sources modals were getting text cursors. (#15317)
- Fixed a bug where disclosure hint text wasn’t legible on hover. (#15316)
- Fixed an error that occurred if the System Name was set to a nonexistent environment variable.
- Fixed a bug where custom table columns within element indexes weren’t getting updated automatically when table rows were refreshed.
- Fixed a bug where nested element indexes weren’t passing the
ownerId
param, when refreshing elements’ table rows. - Fixed a bug where it wasn’t possible to tell if an element had been edited, if it was displayed within a nested element index table without a header column.
- Fixed an error that could occur if a field was removed from a field layout, if another field had been conditional based on it. (#15328)
4.10.5
Note
Craft now sends no-cache headers for requests that generate/retrieve a CSRF token. If your Craft install is behind a static caching service like Cloudflare, enable the asyncCsrfInputs config setting to avoid a significant cache hit reduction. (#15293, #15281)
- Craft now sends no-cache headers for any request that calls
craft\web\Request::getCsrfToken()
. (#15293, #15281) - Fixed a bug where structures’ Max Levels settings weren’t being enforced when dragging elements with collapsed descendants. (#15310)
- Fixed a bug where
craft\helpers\ElementHelper::isDraft()
,isRevision()
, andisDraftOrRevision()
weren’t returningtrue
if a nested draft/revision element was passed in, but the root element was canonical. (#15303) - Fixed a bug where focus could be trapped within slideout sidebars. (#15314)
5.2.5
- Craft now sends no-cache headers for any request that generates a CSRF token. (#15281, verbb/formie#1963)
- Fixed a JavaScript error that occurred when creating a new custom element source, preventing the Default Sort and Default Table Columns fields from showing up.
- Fixed a bug where the control panel was getting asynchronous CSRF inputs if the
asyncCsrfInputs
config setting was enabled. - Fixed a bug where Craft’s Twig implementation wasn’t respecting sandboxing rules for object properties. (#15278)
- Fixed a bug where assets that the user wasn’t permitted to view could have a “Show in folder” action.
- Fixed focus management with element select inputs after elements were added or removed.
- Fixed a bug where it wasn’t possible to set
title
values on nested Matrix entries, when saving section entries via GraphQL. (#15270) - Fixed a SQL error that could occur if a
DECIMAL()
expression was passed into a query’sselect()
orgroupBy()
methods. (#15271) - Fixed a bug where the “Delete (with descendants)” element action wasn’t deleting descendants. (#15273)
- Fixed an error that could occur when upgrading to Craft 5 if the database user didn’t have permission to disable foreign key constraints. (#15262)
4.10.4
- Craft now sends no-cache headers for any request that generates a CSRF token. (#15281, verbb/formie#1963)
- Fixed a JavaScript error that occurred when creating a new custom element source, preventing the Default Sort and Default Table Columns fields from showing up.
- Fixed a bug where the control panel was getting asynchronous CSRF inputs if the
asyncCsrfInputs
config setting was enabled. - Fixed a bug where Craft’s Twig implementation wasn’t respecting sandboxing rules for object properties. (#15278)
5.2.4.1
5.2.4
- Improved the styling of inactive users’ status indicators. (#15195)
- Added
Garnish.once()
andGarnish.Base::once()
, for registering event handlers that should only be triggered one time. - Fixed a bug where Ajax requests stopped working after a user session expired and then was reauthenticated.
- Fixed an error that occurred if an element select input was initialized without a
name
value. - Fixed a bug where Selectize inputs could be immediately focused and marked as dirty when opening an element editor slideout, if they were the first focusable element in the field layout. (#15245)
- Fixed a bug where other author indicators weren’t shown for Craft Team.
- Fixed a bug where the Recent Entries widget wasn’t showing authors’ usernames for Craft Team.
- Fixed a bug where asset edit page URLs contained spaces if the asset filename contained spaces. (#15236)
- Fixed a bug where element select inputs with
single
set totrue
would set existing elements’ input names ending in[]
. - Fixed a bug where element indexes could display “Nothing yet” at the bottom of populated table views. (#15241)
- Fixed a bug where element edit pages initially showed the canonical element’s chip in the crumb bar, for provisional drafts. (#15244)
- Fixed an error that occurred when opening an element’s editor slideout via its “Edit” action menu item, if the element had provisional changes. (#15248)
- Fixed a bug where recursively-nested Matrix entries could be lost if multiple of them were edited, and not immediately saved. (#15256)
- Fixed an error that could occur when upgrading to Craft 5 if the database user didn’t have permission to disable foreign key constraints. (#15262)
- Fixed a bug where expanded sidebar navigations could overlap the main content on small screens. (#15253)
4.10.3
- Previewing PDF/video assets without public URLs now displays a “Preview not supported.” message. (#15235)
- Added
Garnish.once()
andGarnish.Base::once()
, for registering event handlers that should only be triggered one time. - Fixed a bug where Edit Asset pages showed a “View” button for assets without URLs. (#15235)
- Fixed a bug where asset indexes attempted to link to assets without URLs. (#15235)
- Fixed a bug where queue job tracking and element activity tracking could stop working after a user session expired and then was reauthenticated.
- Fixed an error that occurred if an element select input was initialized without a
name
value. - Fixed a bug where Selectize inputs could be immediately focused and marked as dirty when opening an element editor slideout, if they were the first focusable element in the field layout. (#15245)