Releases: craftcms/cms
Releases · craftcms/cms
5.1.7
- Scalar element queries no longer set their
$select
property to the scalar expression, fixing an error that could occur when executing scalar queries for relation fields. (#15071) - Fixed an error that occurred when upgrading to Craft 5 if a Matrix block type didn’t have any fields.
- Fixed an error that occurred when upgrading to Craft 5 if any Matrix block rows had invalid
primaryOwnerId
values. (#15063)
5.1.6
5.1.5
- Scalar element queries now set
$select
to the scalar expression, and$orderBy
,$limit
, and$offset
tonull
, on the element query. (#15001) - Added
craft\fieldlayoutelements\TextareaField::inputTemplateVariables()
. - Fixed a bug where
craft\helpers\Assets::prepareAssetName()
wasn’t sanitizing filenames if$preventPluginModifications
wastrue
. - Fixed a bug where element queries’
count()
methods were factoring in thelimit
param when searching withorderBy
set toscore
. (#15001) - Fixed a bug where soft-deleted structure data associated with elements that belonged to a revision could be deleted by garbage collection. (#14995)
- Fixed a bug where element edit pages’ scroll positions weren’t always retained when automatically refreshed.
- Fixed a bug where the
up
command could remove component name comments from the project config YAML files, for newly-added components. (#15012) - Fixed a bug where assets’ Alternative Text fields didn’t expand to match the content height. (#15026)
- Fixed a bug where
craft\helpers\UrlHelper::isAbsoluteUrl()
was returningtrue
for Windows file paths. (#15043) - Fixed an error that occurred on the current user’s Profile screen if they didn’t have permission to access the primary site. (#15022)
- Fixed a bug where non-localizable elements’ edit screens were displaying a site breadcrumb.
- Fixed a bug where entry GraphQL queries weren’t available if only nested entry field queries were selected in the schema.
- Fixed a bug where chip labels could wrap unnecessarily. (#15000, #15017)
- Fixed a bug where date/time clear buttons could bleed out of their container. (#15017)
- Fixed an error that occurred when editing an element, if any field layout conditions referenced a custom field that was no longer included in the layout. (#14838)
- Fixed a “User not authorized to create this element.” error that could occur when creating a new entry within a Matrix field, if the field had Max Entries set. (#15015)
- Fixed a bug where nested entries weren’t showing up within Matrix fields set to the element index view mode, when viewing entry revisions. (#15038)
- Fixed the styling of element chips displayed within an element card. (#15044)
- Fixed styling issues with inline-editing within element indexes. (#15040, #15049)
- Fixed a bug where sticky scrollbars could stop working when switching between element index sources. (#15047)
4.9.5
- Scalar element queries now set
$select
to the scalar expression, and$orderBy
,$limit
, and$offset
tonull
, on the element query. (#15001) - Added
craft\fieldlayoutelements\TextareaField::inputTemplateVariables()
. - Fixed a bug where
craft\helpers\Assets::prepareAssetName()
wasn’t sanitizing filenames if$preventPluginModifications
wastrue
. - Fixed a bug where element queries’
count()
methods were factoring in thelimit
param when searching withorderBy
set toscore
. (#15001) - Fixed a bug where soft-deleted elements that belonged to a revision could be deleted by garbage collection. (#14995)
- Fixed a bug where soft-deleted structure data associated with elements that belonged to a revision could be deleted by garbage collection. (#14995)
- Fixed a bug where element edit pages’ scroll positions weren’t always retained when automatically refreshed.
- Fixed a bug where the
up
command could remove component name comments from the project config YAML files, for newly-added components. (#15012) - Fixed a bug where assets’ Alternative Text fields didn’t expand to match the content height. (#15026)
- Fixed a bug where
craft\helpers\UrlHelper::isAbsoluteUrl()
was returningtrue
for Windows file paths. (#15043)
5.1.4
- Improved the performance of element indexes that contained asset thumbnails. (#14760)
- Table views within element index pages are no longer scrolled directly. (#14927, #15010)
- Fixed a bug where
craft\elements\db\ElementQuery::exists()
would returntrue
ifsetCachedResult()
had been called, even if an empty array was passed. - Fixed an infinite recursion bug that could occur when
craft\web\Response::redirect()
was called. (#15014) - Fixed a bug where
eagerly()
wasn’t working when a custom alias was passed in. - Fixed an error that occurred on users’ Addresses screens. (#15018)
- Fixed a bug where asset chips’ content wasn’t spanning the full width for Assets fields in large thumbnail mode. (#14993)
- Fixed infinite scrolling on Structure element sources. (#14992)
- Fixed right-to-left styling issues. (#15019)
4.9.4
- Fixed a bug where
craft\elements\db\ElementQuery::exists()
would returntrue
ifsetCachedResult()
had been called, even if an empty array was passed. - Fixed a bug where it wasn’t possible to interact with disabled Matrix blocks. (#15002)
- Fixed an infinite recursion bug that could occur when
craft\web\Response::redirect()
was called. (#15014)
5.1.3
- Fixed a SQL error that could occur when applying or rebuilding the project config.
- Fixed a bug where adjacent selected table rows were getting extra spacing in Firefox.
- Fixed a SQL error that could occur when creating revisions after garbage collection was run. (#14309)
- Fixed a bug where the
serve
command wasn’t serving paths with non-ASCII characters. (#14977) - Fixed a bug where
craft\helpers\Html::explodeStyle()
andnormalizeTagAttributes()
weren’t handling styles with encoded images viaurl()
properly. (#14964) - Fixed a bug where the
db/backup
command would fail if the destination path contained a space. - Fixed a bug where entry selection modals could list all entries when no sources were available for the selected site. (#14956)
- Fixed a bug where element cards could get duplicate status indicators. (#14958)
- Fixed a bug where element chips could overflow their containers. (#14924)
- Fixed a bug where soft-deleted elements that belonged to a revision could be deleted by garbage collection. (#14967)
- Fixed a bug where disabled entries weren’t being displayed within Matrix fields in card view. (#14973)
- Fixed a bug where users’ Permissions screen was inaccessible for the Team edition. (#14976)
- Fixed a SQL error that could occur when attempting to update to Craft 5 for the second time. (#14987)
4.9.3
- Fixed a SQL error that could occur when applying or rebuilding the project config.
- Fixed a bug where adjacent selected table rows were getting extra spacing in Firefox.
- Fixed a SQL error that could occur when creating revisions after garbage collection was run. (#14309)
- Fixed a bug where the
serve
command wasn’t serving paths with non-ASCII characters. (#14977) - Fixed a bug where element chips within element selection tables had insufficient contrast. (#14963)
- Fixed a bug where
craft\helpers\Html::explodeStyle()
andnormalizeTagAttributes()
weren’t handling styles with encoded images viaurl()
properly. (#14964) - Fixed a bug where the
db/backup
command would fail if the destination path contained a space.
5.1.2
- Fixed a bug where the
db/backup
command would prompt for password input on PostgreSQL. (#14945) - Fixed a bug where pressing Shift + Spacebar wasn’t reliably opening the asset preview modal on the Assets index page. (#14943)
- Fixed a bug where pressing Shift + Spacebar within an asset preview modal wasn’t closing the modal.
- Fixed a bug where pressing arrow keys within asset preview modals wasn’t retargeting the preview modal to adjacent assets. (#14943)
- Fixed a bug where entry selection modals could have a “New entry” button even if there weren’t any sections enabled for the selected site. (#14923)
- Fixed a bug where element autosaves weren’t always working if a Matrix field needed to automatically create a nested entry. (#14947)
- Fixed a JavaScript warning. (#14952)
- Fixed XSS vulnerabilities.
4.9.2
- Fixed a bug where the
db/backup
command would prompt for password input on PostgreSQL. (#14945) - Fixed a bug where pressing Shift + Spacebar wasn’t reliably opening the asset preview modal on the Assets index page. (#14943)
- Fixed a bug where pressing Shift + Spacebar within an asset preview modal wasn’t closing the modal.
- Fixed a bug where pressing arrow keys within asset preview modals wasn’t retargeting the preview modal to adjacent assets. (#14943)
- Fixed a bug where entry selection modals could have a “New entry” button even if there weren’t any sections enabled for the selected site. (#14923)