Releases: craftcms/cms
Releases · craftcms/cms
5.7.0-beta.1
Content Management
- Added a “Duplicate” action to nested element cards and inline-editable Matrix blocks. (#16819)
- Added a “Copy” action to element indexes, nested element cards, and inline-editable Matrix blocks, for entries and addresses. (#16888)
- Added support for sorting embedded element indexes by element attributes and custom fields. (#16732)
- Chips, cards, and inline-editable Matrix blocks have been redesigned for consistency and improved readability. (#16983)
- Element cards now include “Edit” buttons in their titlebar, rather than within their action menu. (#16983)
- Nested entry cards within Matrix fields no longer link to their edit page. (#16983)
- Element editor slideouts now show other authors who are currently editing the same element. (#16934)
- Element edit pages no longer have a “View in a new tab” action, if they also have a “View” button. (#16623)
- Condition rules for Checkboxes, Dropdown, Multi-select, and Radio Buttons fields now include “has a value” and “is empty” operators. (#17015)
- The Assets index page now prompts for confirmation when moving more than 50 assets, or assets totalling more than 50MB, at once. (#16908)
- The success notification displayed after an asset move now includes an “Undo” button, if less than 50 assets/50MB were involved in the move. (#16908)
- Color field previews and static inputs now show the selected color’s label if there is one, rather than the hex value. (#16985)
- Lightswitch fields now show their on/off label for table cell previews. (#16861)
- Number field previews now include their prefix and suffix text. (#16986)
- Plain Text fields no longer show the remaining character counter when displayed statically.
- Range field previews now include their suffix text. (#16986)
- Removed the “Always show focus rings” user accessibility preference. (#16585)
- User index tables and cards can now show “Two-Step Verification” attributes. (#16864)
- Element index filters are now shown in a modal window on smaller screens. (#16869)
- Command/Ctrl-clicking on element index page sources now opens the source in a new window.
- Command/Ctrl-clicking on element edit page tabs now opens the tab in a new window.
- Window scrolling is now blocked when a modal window is open. (#16768)
Accessibility
- Entries and addresses within Matrix/Addresses fields now have “Move up/forward” and “Move down/backward” action items. (#16893)
- Tags fields now use an SVG for the “plus” icon rather than a CSS font icon, so the decorative icon is no longer read aloud for screen reader users. (#16754)
- Removed redundant ARIA roles and labels from reorder handles, as in most cases a functional equivalent is provided by the “Move up/forward” and “Move down/backward” action items. (#16826)
- Animated assets no longer have animated thumbnails. (#16497)
- Lightswitch input styles have been updated so the background and handle maintain 3:1 contrast ratio against each other and meta panes’ background color. (#16853)
- Added “Skip to main section”, “Skip to left sidebar”, and “Skip to right sidebar” skip links for quicker keyboard navigation. (#16913)
- Custom constraint inputs in the Image Editor are now grouped together inside a labelled fieldset. (#16914)
- The heading structure of field layout designers has been improved for navigation by screen reader users. The field layout designer is now preceded by a level 2 heading. Tab titles use level 3 headings, and individual fields use level 4 headings. (#16955)
- A “Skip to card view designer” skip link has been added to the field layout designer when it’s followed by the card view designer, so users can quickly navigate to the next section. (#16955)
Administration
- Added the “Button Group” field type. (#16782)
- Added the “JSON” field type. (#16809)
- Added “Icon” and “Color” settings to Checkboxes, Dropdown, Multi-select, and Radio Buttons field options. (#16645)
- Added the “Show unpermitted sections” and “Show unpermitted entries” settings for Entries fields. (#17034)
- Added an optional “Download” advanced field to Link fields. (#16844)
- Added the “SMS” link type for Link fields. (#16850)
- Added the “Allow custom URL schemes” setting for Link fields with the “URL” link type enabled. (#16850)
- Added the “Show unpermitted sections” and “Show unpermitted entries” settings for Link fields. (#17034)
- Added the “Enable versioning for entries in this field” setting to Matrix fields. (#17008)
- Relational fields now have “Default [Type] Placement” settings, which control whether newly-related elements are placed before or after existing relations. (#16989)
- Added support for read-only custom fields, via new “Editability Conditions” on custom fields’ field layout settings. (#16805)
- “Template” field layout UI elements are now re-rendered on each autosave. (#16837)
- “Horizontal Rule” and “Line Break” field layout UI elements can now have visibility conditions. (#13169)
- Sections’ “Max Authors” settings are now optional, allowing unlimited authors when blank. (#16898)
- Sections’ “Max Authors” settings can now be set to
0
, preving the “Author” field from being displayed on Edit Entry screens. (#16898) - The email settings page now shows a “Test” button when
allowAdminChanges
is disabled. (#16508) - Entry type chips within entry type select inputs now link to their full settings pages. (#16838)
- Double-clicking on entry type chips within entry type select inputs now opens the entry type’s settings in a slideout, rather than its override settings. (#16838)
- Color previews within card attribute designers now show a value from the color palette. (#16985)
- Number previews within card attribute designers now show an in-range value, if the Min Value and Max Value settings are set. (#16986)
- Range previews within card attribute designers new shew an in-range value. (#16986)
- Section and entry type names are now linked to their edit pages from entry indexes, for admins.
- Added the
staticStatuses
config setting, for opting into entry statuses being stored statically and only updated on save. (#17024) - Added the
db/repair
command. (#16812) - Added the
fields/delete
command. (#16828) - Added the
update-statuses
command. (#17024) - Added the
--batch-size
option forresave/*
commands. (#16586) - The
plugin/install
command now accepts anedition
argument, and prompts for the default edition if none is specified. (#17030) - The
plugin/uninstall
command now reports if no plugin is installed with the provided handle. (#17030) - The
users/create
command now prompts to send an activation email, or outputs an activation URL. (#16794) - Dragging headings within the Customize Sources modal now also drags any subsequent sources. (#16737)
- When switching field types, any field settings which are defined by the same base class are now preserved. (#16783)
classHandle
,content
,rawContent
, andvalue
are no longer globally-reserved handles.searchKeywords
is no longer a globally-reserved handle, except for custom fields.section
andtype
are no longer globally-reserved handles, except for custom fields within entry type field layouts.postDate
is ...
5.6.16
- Fixed a bug where
craft\services\Assets::EVENT_BEFORE_REPLACE_ASSET
andEVENT_BEFORE_REPLACE_ASSET
events weren’t getting triggered when replacing an asset file via GraphQL. (#17005) - Fixed a bug where replacing a file via GraphQL could result in two assets referring to the same file. (#17031)
- Fixed a bug where the window wasn’t automatically scrolling when dragging structure elements near its edges. (#17036)
- Fixed a bug where changes to multi-instance CKEditor fields weren’t persisting, if the first instance in the field layout hadn’t been modified. (craftcms/ckeditor#391)
- Fixed a bug where email templates weren’t always getting rendered with the correct site’s global variables.
- Fixed a bug where Markdown field layout UI elements were styled with gray-colored text. (#13513)
4.15.0-beta.1
Content Management
- Condition rules for Checkboxes, Dropdown, Multi-select, and Radio Buttons fields now include “has a value” and “is empty” operators. (#17015)
- The Assets index page now prompts for confirmation when moving more than 50 assets, or assets totalling more than 50MB, at once. (#16908)
- The success notification displayed after an asset move now includes an “Undo” button, if less than 50 assets/50MB were involved in the move. (#16908)
- Window scrolling is now blocked when a modal window is open. (#16768)
Administration
- Added the
db/repair
command. (#16812) - Added the
--batch-size
option forresave/*
commands. (#16586) - The
plugin/install
command now accepts anedition
argument, and prompts for the default edition if none is specified. (#17030) - The
plugin/uninstall
command now reports if no plugin is installed with the provided handle. (#17030) - The
users/create
command now prompts to send an activation email, or outputs an activation URL. (#16794) - Dragging headings within the Customize Sources modal now also drags any subsequent sources. (#16737)
- When switching field types, any field settings which are defined by the same base class are now preserved. (#16783)
Development
- Added the
searchTermOptions
GraphQL query argument. (#16979) - Added the
revisionNotes
GraphQL entry mutation argument. (#16943)
Extensibility
- Global nav items and breadcrumbs can now have
aria-label
attributes via anariaLabel
property. - Added
craft\base\ElementInterface::getSerializedFieldValuesForDb()
. - Added
craft\base\FieldInterface::serializeValueForDb()
. - Added
craft\base\conditions\BaseMultiSelectConditionRule::$includeEmptyOperators
. - Added
craft\db\Connection::getIsMaria()
. - Added
craft\db\Table::SEARCHINDEXQUEUE_FIELDS
. - Added
craft\db\Table::SEARCHINDEXQUEUE
. - Added
craft\db\mysql\QueryBuilder::jsonContains()
. - Added
craft\db\mysql\QueryBuilder::jsonExtract()
. - Added
craft\db\pgsql\QueryBuilder::jsonContains()
. - Added
craft\db\pgsql\QueryBuilder::jsonExtract()
. - Added
craft\queue\ReleasableQueueInterface
. (#16672) - Added
craft\records\User::haveIndexAttributesChanged()
. - Added
craft\services\Search::indexElementIfQueued()
. - Added
craft\services\Search::queueIndexElement()
. craft\cache\ElementQueryTagDependency
now merges cache tags provided by the element query with any tags already set on its$tags
property.
System
craft\queue\Queue::release()
andreleaseAll()
now callrelease()
andreleaseAll()
on the proxied queue if it implementscraft\queue\ReleasableQueueInterface
. (#16672)- The
changedattributes
andchangedfields
tables are now cleaned up during garbage collection. (#16531) - The
resourcepaths
table is now truncated when clearing control panel resources, via the Caches utility or theclear-caches/cp-resources
command. (#16514) - Date values for custom fields are now represented as ISO-8601 date strings (with time zones) within element exports. (#16629)
- “Updating search indexes” queue jobs no longer do anything if search indexes were already updated for the element since the job was created. (#16644)
- User caches are no longer invalidated on login attempts or when user management actions are taken. (#16937)
- Batchable queue jobs now spawn new batches when their execution time is getting uncomfortably close to their TTR duration. (#16947)
- Updated Yii to 2.0.52.
- Updated yii2-debug to 2.1.26.
- Updated Axios to 1.8.4.
- Fixed a bug where
CRAFT_WEB_URL
andCRAFT_WEB_ROOT
environment variables could be overridden by@web
and@webroot
aliases define by thealiases
config setting. (#16980)
4.14.14
- Fixed a bug where
craft\services\Assets::EVENT_BEFORE_REPLACE_ASSET
andEVENT_BEFORE_REPLACE_ASSET
events weren’t getting triggered when replacing an asset file via GraphQL. (#17005) - Fixed a bug where replacing a file via GraphQL could result in two assets referring to the same file. (#17031)
- Fixed a bug where the window wasn’t automatically scrolling when dragging structure elements near its edges. (#17036)
5.6.15
- Fixed an error that could occur when clearing control panel resources, if the
resourceBasePath
setting was set to a nonexistent folder path. (#17021) - Fixed a bug where the
includeSubfolders
asset GraphQL query argument wasn’t working. (#17023) - Fixed a bug where custom tips and warnings set on native fields (like Title) weren’t getting translated. (#17016)
- Fixed a privilege escalation vulnerability.
- Fixed an RCE vulnerability.
4.14.13
- Fixed an error that could occur when clearing control panel resources, if the
resourceBasePath
setting was set to a nonexistent folder path. (#17021) - Fixed a bug where the
includeSubfolders
asset GraphQL query argument wasn’t working. (#17023) - Fixed a privilege escalation vulnerability.
- Fixed an RCE vulnerability.
5.6.14
- Improved the styling of Markdown UI elements. (#16973)
- Fixed a bug where relations weren’t always propagating to newly-added sites for sections correctly. (#16924)
- Fixed a bug where Assets fields set to restrict assets to a single location were relocating assets on element propagation. (#12767, #16936)
- Fixed a bug where relations weren’t getting saved for new elements, if the element was created with
Craft::createObject()
with its relation field data included in the passed-in config. (#16942) - Fixed a bug where relational fields with a “Related To” rule on their selectable elements condition weren’t making all expected elements selectable. (#16945)
- Fixed a bug where some subdivisions weren’t available when creating addresses. (#16951)
- Fixed a bug where some older dates could be formatted incorrectly. (#16953)
- Fixed a bug where the
folderPath
asset query param only accepted strings. (#16981) - Fixed a bug where
craft\elements\Asset::getSrcset()
could return malformed results if any sizes didn’t have corresponding image URLs. (#16984) - Fixed an error that could occur when uploading images. (#16977)
- Fixed a bug where the “Save” button on user group edit pages was redirecting to the same page, rather than the User Groups index page. (#16988)
- Fixed a bug where asset previews had an “Enable focal point” button even if the logged-in user didn’t have permission to save the asset. (#16997)
- Fixed a bug where provisional drafts created for nested elements weren’t being properly assigned to both the canonical owner element and the owner’s provisional draft, if it had one. (#16933)
- Fixed a bug where global sidebar tooltips were blank in Safari. (#16959)
- Fixed a bug where newly-added elements within relational fields were getting shown twice when dragged.
- Fixed a bug where “Set status” bulk element actions could be activated for elements the logged-in user didn’t have permission to edit. (#16995)
- Fixed styling issues. (#16964, #16993)
4.14.12
- Fixed a bug where relations weren’t always propagating to newly-added sites for sections correctly. (#16924)
- Fixed a bug where Assets fields set to restrict assets to a single location were relocating assets on element propagation. (#12767, #16936)
- Fixed a bug where relations weren’t getting saved for new elements, if the element was created with
Craft::createObject()
with its relation field data included in the passed-in config. (#16942) - Fixed a bug where relational fields with a “Related To” rule on their selectable elements condition weren’t making all expected elements selectable. (#16945)
- Fixed a bug where some subdivisions weren’t available when creating addresses. (#16951)
- Fixed a bug where some older dates could be formatted incorrectly. (#16953)
- Fixed a bug where the
folderPath
asset query param only accepted strings. (#16981) - Fixed a bug where
craft\elements\Asset::getSrcset()
could return malformed results if any sizes didn’t have corresponding image URLs. (#16984) - Fixed an error that could occur when uploading images. (#16977)
- Fixed a bug where the “Save” button on user group edit pages was redirecting to the same page, rather than the User Groups index page. (#16988)
- Fixed a bug where asset previews had an “Enable focal point” button even if the logged-in user didn’t have permission to save the asset. (#16997)
- Fixed a styling issue. (#16964)
5.6.13
- Fixed a performance degradation bug that occurred when working with Categories or Entries fields with “Maintain hierarchy” enabled. (#16920)
- Fixed a bug where Categories and Entries fields with “Maintain hierarchy” enabled were getting all relatable entries/categories selected by default. (#16925)
- Fixed a bug where Plain Text and Table fields were converting posted shortcode-looking strings to emoji. (#12935, #16917)
- Fixed a bug where relation fields could show relations from another instance of the same field. (#16912)
- Fixed a bug where tooltips could show and hide repeatedly. (#16922)