Releases: craftcms/cms
Releases · craftcms/cms
5.6.3
- Fixed a bug where
craft\db\QueryBatcher::getSlice()
wasn’t using the database connection passed to the class constructor. (#16579) - Fixed an error that could occur when eager-loading nested elements’ owners, if any of the queried elements didn’t have an owner ID. (#16570, #16572, #16576)
- Fixed a bug where collapsed elements within element indexes in structure view weren’t showing their expand/collapse toggles.
- Fixed a bug where Color fields weren’t getting fully instantiated within slideouts, Live Preview, and after copying the field value from another site. (#16571)
- Fixed a bug where buttons weren’t getting focus rings.
- Fixed a bug where light text didn’t meet minimum contrast requirements.
- Fixed an error that could occur when attempting to edit a recursively-nested entry. (#16566)
- Fixed a bug where custom options set to Checkboxes and Radio Buttons fields weren’t showing up in field previews. (#16575)
4.14.3
- Added
craft\db\ExpressionBuilder
. - Added
craft\db\ExpressionInterface
. - Added compatibility with codeception/module-yii2 1.1.6+. (#16580)
- Fixed a bug where
craft\db\QueryBatcher::getSlice()
wasn’t using the database connection passed to the class constructor. (#16579) - Fixed a bug where collapsed elements within element indexes in structure view weren’t showing their expand/collapse toggles.
5.6.2
- The Login page now displays the Login Page Logo above the login form, rather than within the header. (#16564)
- The field layout element library HUD is no longer closed automatically when an element is selected. (#16521)
- The “Settings” global nav item now has an alternate icon when
allowAdminChanges
is disabled, indicating that settings are read-only. (#16563) - Added
craft\web\User::getDefaultReturnUrl()
. - Fixed a bug where Entries fields’ entry select modals could show expand/collapse toggles for Structure sections, for elements that didn’t have any selectable descendants. (#16506)
- Fixed a bug where changes to custom fields within nested Matrix entries weren’t getting merged into existing drafts for the same owner element. (#16519)
- Fixed a bug where native fields (e.g. Title) were showing changed statuses when viewing revisions, if they had been updated since the time the revision was created.
- Fixed a bug where eager-loading element queries could create an excessive amount of cache invalidation tags.
- Fixed a bug where it was possible to enable elements for new sites with validation errors. (#16505)
- Fixed a bug where ʻokina characters weren’t being removed in auto-generated slugs. (#16548)
- Added a
cp.login.alternative-login-methods
hook to the system login template. - Fixed a bug where Color fields’ custom color inputs were including presets based on the color palette.
- Fixed a bug where nested Matrix entries weren’t getting assigned a post date if they were created while saving the owner element with a custom validation scenario. (#16504)
- Fixed a bug where plugin settings pages weren’t displaying a read-only notice and had Save buttons, when
allowAdminChanges
wasfalse
. (#16509) - Fixed a bug where eager-loading elements on nested entries resulted in a large number of database queries.
- Fixed a bug where field action menus were showing on fields that didn’t have a label or visible field handle. (#16510)
- Fixed a styling issue. (#16515)
- Fixed a bug where the login modal could be displayed too short for its contents.
- Fixed a bug where SSO logins would redirect to the front end by default.
- Fixed a bug where SSO users were able to “reset” their passwords.
- Fixed JavaScript error that occurred if there was problem sending a password-reset email.
- Fixed an error that could occur when working with an entry whose type is no longer allowed by its section/field. (#16539)
- Fixed a bug where tooltips were displaying behind slideouts. (#16529)
- Fixed a bug where field translation indicators and action menu buttons could be autofocussed when creating a new entry within a Matrix field, or opening an element editor slideout. (#16528)
- Fixed a bug where field values copied from another site weren’t always saving. (#16537)
- Fixed errors that could occur on Ajax requests when deleting an inline-editable Matrix block. (#16540)
- Fixed compatibility with the Google Authenticator app for TOTP-based authentication. (#16466, #16552)
- Fixed a bug where the Updates utility wasn’t showing the “Update all” button if multiple updates were available. (#16565)
- Fixed a bug where
craft\services\Sso::findUser()
wasn't accounting for soft-deleted users. (#16491) - Fixed a bug where Color fields weren’t getting fully instantiated when present on a newly-created nested entry within a Matrix field. (#16554)
- Fixed a bug where content footers could bleed out of their containers on smaller screens. (#16557)
- Fixed a bug where email settings weren’t validating if any System Email Address or Reply-To Address site override settings were set to environment variables. (#16559)
- Fixed a bug where tooltips could be closed immediately. (#16530)
4.14.2
- Fixed a bug where Entries fields’ entry select modals could show expand/collapse toggles for Structure sections, for elements that didn’t have any selectable descendants. (#16506)
- Fixed a bug where changes to custom fields within Matrix blocks weren’t getting merged into existing drafts for the same owner element. (#16519)
- Fixed a bug where native fields (e.g. Title) were showing changed statuses when viewing revisions, if they had been updated since the time the revision was created.
- Fixed a bug where eager-loading element queries could create an excessive amount of cache invalidation tags.
- Fixed a bug where it was possible to enable elements for new sites with validation errors. (#16505)
- Fixed a bug where setting
transaction: true
in the Codeception configuration wasn’t rolling back database DML changes after a test. (#16546) - Fixed a bug where ʻokina characters weren’t being removed in auto-generated slugs. (#16548)
5.6.1
- Fixed a bug where all multi-byte characters were getting stripped out of search indexes. (#16457)
- Fixed a bug where Color fields weren’t translating color palette labels.
- Fixed a bug where
craft\elements\Asset::getSrcset()
(andsrcset
method arguments) weren’t producing the correct transform URLs if the asset already had a named transform applied to it. (#16486) - Fixed a bug where the Login Page Logo general setting had inaccurate instructions. (#16482)
- Fixed a bug where element indexes’ View menus could have a horizontal scrollbar. (#16473)
- Fixed a bug where info icons weren’t shown within slideouts.
- Fixed a bug where the
utils/delete-empty-volume-folders
command was deleting folders that had no assets directly, but had subfolders. (#16388)
4.14.1
5.6.0.2
4.14.0.2
5.6.0.1
5.6.0
Content Management
- Custom fields within element edit pages can now have action menus with “Copy value from site…”, “Edit field” and “Copy field handle” items. (#16415, #14056)
- Added the “Field” entry condition rule, which replaces “Matrix field”, includes a “has a value” operator. (#16270)
- “Related To”, “Not Related To”, “Author”, and relational field condition rules now allow multiple elements to be specified. (#16121)
- Section condition rules now have a “has a value” operator. (#16270)
- Added the “Widget Title” setting to Quick Post widgets. (#16429)
- Improved the styling of inline code fragments. (#16141)
- Improved the styling of attribute previews in card view. (#16324)
- Added the “Affiliated Site” user condition rule. (#16174)
- Added the “Credentialed” user card/table attribute.
- The global sidebar no longer shows “Failed” for queue jobs, for users that don’t have access to the Queue Manager. (#16184)
- Addresses and Matrix fields now show provisional drafts when previewing an owner element. (#16295)
- Color fields with a predefined color palette now primarily show a color select dropdown, rather than a manual color input. (#16249)
- Improved how fields are sized in responsive field layouts. (#16303)
- Entry indexes now only show table column options and sort options for custom fields associated with the selected sections/entry types within custom entry sources’ conditions.
- Structure views are now available to element indexes on mobile browsers. (#16190)
- Datepickers now include a dropdown menu for selecting the year. (#16376)
- Element exports now include date attribute values set to the system time zone. (#16447)
- Heads-up displays now reposition themselves on window scroll.
Accessibility
- Improved the accessibility of Checkboxes and Radio Buttons fields that allow custom options. (#16080)
- Improved the accessibility of control panel icons. (#16128)
- Improved the accessibility of Selectize inputs. (#16110)
- Improved the accessibility of the image rotation control within the Image Editor. (#16218)
- Improved the accessibility of action menus on the Plugins index page.
- Improved the accessibility of “More” and “Advanced” toggle triggers. (#16293)
- Improved the accessibility of the Craft Support widget. (#16293)
- Improved the accessibility of field translatable indicators and tooltips.
- Progress bars now announce their progress to screen readers. (#16398)
- Loading spinners within element indexes and inline-editable Matrix fields are now announced to screen readers. (#16417)
- Improved the accessibility of timepicker inputs. (#16152)
Administration
- Added support for setting site-specific email setting overrides. (#16187)
- Added the “Affiliated Site” native user field. (#16174)
- Added the “View users” user permission. (#16206)
- Added the ability to override entry type names and handles for sections and Matrix fields. (#16453)
- Added the “Advanced Fields” setting to Link fields, with “Target”, “URL Suffix”, “Title Text”, “ARIA Label”, “Class Name”, “ID”, and “Relation (rel)” options. (#16268)
- Added the “Palette” setting to Color fields, which replaces “Presets”. (#16249)
- Added the “Allow custom colors” setting to Color fields. (#16249)
- Added the “GraphQL Mode” Link field setting. (#16237)
- Added a card view designer for addresses. (#16446)
- It’s now possible to view (but not edit) system and plugin settings on environments where
allowAdminChanges
is disabled. (#16265) - Added “Copy plugin handle” and “Copy package name” options to plugins’ action menus on the Plugins index page. (#16281)
- The Updates utility now shows an action menu for each plugin, with “Copy plugin handle” and “Copy package name” options. (#16281)
- The Queue Manager utility now shows jobs’ class names. (#16228)
- Field layout designers no longer show the element library in a persisting sidebar. Instead, tabs always show “Add” buttons, which open the element library within a heads-up display. (#16374)
- It’s now possible to add new field layout elements to tabs by clicking/tapping or pressing Return/Spacebar on them. (#16374)
- After creating a new field from a field layout designer, the field is now immediately added to the field layout tab. (#16374)
- Templates rendered for “Template” field layout UI elements can now call control panel template functions like
elementChip()
andelementCard()
. (#16267) - “Template” field layout UI elements now show suggestions for the Template input.
- Removed the “Edit field” action from field instance action menus within field layout designers. (#16451)
- Added the
elements/delete-all-of-type
command. (#16423) - Added the
utils/delete-empty-volume-folders
command. (#16388) - Improved the error output for nested elements when they can’t be resaved via
resave
commands. resave
commands’--drafts
,--provisional-drafts
, and--revisions
options can now be set tonull
, causing elements to be resaved regardless of whether they’re drafts/provisional drafts/revisions.- Added the
systemTemplateCss
config setting. (#16344) - The
loginPath
,logoutPath
,setPasswordPath
, andverifyEmailPath
config settings are now respected in headless mode. (#16344)
Development
- Added support for fallback element partial templates, e.g.
_partials/entry.twig
as opposed to_partials/entry/typeHandle.twig
. (#16125) - Added the
primarySite
global Twig variable. (#16370) - Added the
PHP_INT_MAX
global Twig variable. - The
duration
Twig filter now has alanguage
argument. (#16332) - The
indexOf
Twig filter now has adefault
argument, which can be any integer ornull
. (-1
by default for backwards compatibility.) {% cache %}
tags now cache any JavaScript import map entries registered viacraft\web\View::registerJsImport()
within them.- The
{% requireAdmin %}
tag now supports passing a boolean value, which determines whether administrative changes must be allowed (defaults totrue
). - Added the
withProvisionalDrafts
element query param, which causes the resulting elements to be replaced with any provisional drafts for the current user. - It’s now possible to pass nested custom field value keys into element queries’
orderBy
andselect
params (e.g.myDateField.tz
). (#16157) - It’s now possible to reference custom field handles in element queries’
where
params. (#16318) - Number fields’ scalar values now return an integer if Decimals is set to
0
, and a number formatted with the correct decimal points when using MySQL. (16369) - Added the
affiliatedSite
andaffiliatedSiteId
user query and GraphQL params. (#16174) - Added the
affiliatedSiteHandle
andaffiliatedSiteId
user GraphQL field. (#16174) - Added support for specifying the current site via an
X-Craft-Site
header set to a site ID or handle. (#16367) - It’s now possible to set Link field values to arrays with
value
keys set to element instances or IDs. (#16255) - Added the
disable2fa
config setting. (#16426) - Added support for defining redirects from
config/redirects.php
. (#16355) - Deprecated the
ucfirst
Twig filter.capitalize
should be used instead.
Extensibility
- Added `craft...