Skip to content

Releases: craftcms/cms

5.5.3

22 Nov 23:31
5.5.3
20199c5
Compare
Choose a tag to compare
  • Element indexes now sort by ID by default, for sources that don’t define a default sort option.
  • Fixed a bug where element indexes were sorting by the first sortable attribute alphabetically by default, rather than the first sortable attribute defined by the element type.
  • Fixed a bug where craft\events\ApplyFieldSaveEvent::$field wasn’t being set consistently by craft\services\Fields::EVENT_BEFORE_APPLY_FIELD_SAVE. (#16156)
  • Fixed a bug where the address field layout’s project config data wasn’t getting recreated when running project-config/rebuild. (#16189)
  • Fixed an error that could occur when creating a nested element. (#16162)
  • Fixed a bug where custom fields weren’t being displayed at 25% width when they should have. (#16165)
  • Fixed a bug where the “Default Table Columns” element source settings could contain duplicate checkbox options. (#16177)
  • Fixed a JavaScript error that broke nested element creation in global sets. (#16182)
  • Fixed a bug where Number fields weren’t rounding existing values based on the precision specified by the Decimals setting. (#16181)

4.13.3

22 Nov 23:28
4.13.3
2ccb651
Compare
Choose a tag to compare
  • Element indexes now sort by ID by default, for sources that don’t define a default sort option.
  • Fixed a bug where element indexes were sorting by the first sortable attribute alphabetically by default, rather than the first sortable attribute defined by the element type.
  • Fixed a bug where bulk asset actions where shown as available when subfolders were selected, when they shouldn’t have. (#16151)
  • Fixed a bug where craft\events\ApplyFieldSaveEvent::$field wasn’t being set consistently by craft\services\Fields::EVENT_BEFORE_APPLY_FIELD_SAVE. (#16156)
  • Fixed a bug where the address field layout’s project config data wasn’t getting recreated when running project-config/rebuild. (#16189)

5.5.2

19 Nov 17:19
5.5.2
43dc9cf
Compare
Choose a tag to compare
  • Fixed an error that could occur if an invalid folder ID was passed to craft\services\Assets::deleteFoldersByIds(). (#16147)
  • Fixed a SQL error that occurred when creating a new Single section. (#16145)
  • Fixed an error that occurred when running the resave/all command, if any of the options passed weren’t supported by other resave/* commands. (#16148)
  • Fixed an error that occurred when restoring a soft-deleted custom field. (#16150)
  • Fixed an RCE vulnerability.

5.5.1.1

19 Nov 02:13
5.5.1.1
2233b27
Compare
Choose a tag to compare

5.5.1

19 Nov 00:36
5.5.1
b37fe12
Compare
Choose a tag to compare
  • The entry-types/merge command can now be run non-interactively. (#16135)
  • Fixed a JavaScript error that could occur on element edit pages. (#16055)
  • Fixed a Twig deprecation error. (#16107)
  • Fixed a bug where craft\services\Structures::fillGapsInElements() wasn’t working properly if the elements weren’t passed in hierarchical order. (#16085)
  • Fixed a bug where craft\helpers\Console::table() wasn’t handling multi-byte characters and ANSI-formatted strings properly.
  • Fixed a bug where entries could appear to retain old field values when switching entry types, even if the new type’s fields weret’t compatible with the original type’s fields. (#16056)
  • Fixed a bug where Link field query params weren’t working for elements that hadn’t been saved since updating to Craft 5.5.0+. (#16113)
  • Fixed a bug where Live Preview wasn’t reloading after reordering nested entries or addresses. (#16122)
  • Fixed a JavaScript error that could occur when reordering structured elements within an embedded element index. (#16103)
  • Fixed a bug where changes to nested entries/addresses in card view were getting published immediately on save, if the parent element was a draft.
  • Fixed a bug where element cards could bleed out of their containers. (#16112)
  • Fixed a bug where nested entries could get deleted when restoring revisions. (#16116)
  • Fixed a bug where reordering nested addresses or entries would cause any provisional drafts to be fully created. (#16094)
  • Fixed a PHP error that could occur on element indexes. (craftcms/commerce#3774)
  • Fixed a bug where an existing Single section entry could be deleted when the section’s Entry Types setting changed. (#16102)
  • Fixed a bug where Single section entries’ content could be lost after running the entry-types/merge command. (#16102)
  • Fixed a bug where Single section entries could be duplicated after running the entry-types/merge command. (#16087, #16102)
  • Fixed an RCE vulnerability.

4.13.2

19 Nov 17:18
4.13.2
b2515b0
Compare
Choose a tag to compare
  • Fixed an error that could occur if an invalid folder ID was passed to craft\services\Assets::deleteFoldersByIds(). (#16147)
  • Fixed an RCE vulnerability.

4.13.1.1

19 Nov 02:11
4.13.1.1
2c91772
Compare
Choose a tag to compare

4.13.1

19 Nov 00:33
4.13.1
89655c1
Compare
Choose a tag to compare
  • Fixed a JavaScript error that could occur on element edit pages. (#16055)
  • Fixed a Twig deprecation error. (#16107)
  • Fixed a bug where craft\services\Structures::fillGapsInElements() wasn’t working properly if the elements weren’t passed in hierarchical order. (#16085)
  • Fixed an RCE vulnerability.

5.5.0.1

13 Nov 14:38
5.5.0.1
5e24a0b
Compare
Choose a tag to compare
  • Fixed an error that prevented custom fields from loading on the Settings → Fields.

5.5.0

12 Nov 17:15
5.5.0
b637df4
Compare
Choose a tag to compare

Content Management

  • When saving a nested element within a Matrix/Addresses field in card view, the changes are now saved to a draft of the owner element, rather than published immediately. (#16002)
  • Nested element cards now show status indicators if they are new or contain unpublished changes. (#16002)
  • Improved the styling of element cards with thumbnails. (#15692, #15673)
  • Elements within element selection inputs now have “Replace” actions.
  • Entry types listed within entry indexes now show their icon and color. (#15922)
  • Address index tables can now include “Country” columns.
  • Action button cells within editable tables are now center-aligned vertically.
  • Dropdown cells within editable tables are no longer center-aligned. (#15742)
  • Link fields marked as translatable now swap the selected element with the localized version when their value is getting propagated to a new site for a freshly-created element. (#15821)
  • Pressing Return when an inline-editable field is focused now submits the inline form. (Previously Ctrl/Command had to be pressed as well.) (#15841)
  • Improved the styling of element edit page headers, for elements with long titles. (#16001)
  • It’s now possible to preview audio and video assets from Edit Asset screens. (#16021)
  • Sidebar visibility states are now stored in a browser cookie, so they are retained between page/slideout loads. (#16025, #15982)
  • “Related To” condition rules now show the site menu in element selector modals. (#16036)

Accessibility

  • Improved the control panel for screen readers. (#15665)
  • Improved keyboard control. (#15665)
  • Improved the color contrast of required field indicators. (#15665)
  • Improved the accessibility of text inputs for screen readers.
  • It’s now possible to move an image’s focal point without dragging it. (#15904)
  • Improved field status indicators for screen readers. (#16081)

Administration

  • Added the “Range” field type. (#15972)
  • Added the “Allow custom options” setting to Checkboxes and Radio Buttons fields.
  • Added the “Show the ‘Label’ field” and “Show the ‘Open in a new tab’ field” settings to Link fields. (#15983)
  • Link fields’ Allowed Link Types settings are now sortable. (#15963)
  • All relation fields can now be selected as field layouts’ thumbnail providers. (#15651)
  • It’s now possible to include element attributes in card views, alongside custom fields, via new “Card Attributes” configurators. (#15283)
  • Added the “Markdown” field layout UI element type. (#15674, #15664)
  • Added the “Language” element condition rule. (#15952)
  • The Sections index table can now be sorted by Name, Handle, and Type. (#15936)
  • Sections are no longer required to have unique names. (#9829)
  • Customize Sources modals now display native sources’ handles, when known.
  • Removed the “Show the Title field” entry type setting. The “Title” element can now be removed from the field layout instead. (#15942)
  • Entry types can now specify a Default Title Format, which will be used even if the Title field is included in the field layout, to generate a default Title value if the field is blank. (#15942)
  • It’s now possible to control whether entry types’ Title fields are required. (#15942)
  • Added the “Step Size” Number field setting.
  • icon is now a reserved field handle. (#16077)
  • Added the “Default View Mode” element source setting. (#15824)
  • User impersonation now requires an elevated session. (#16052)
  • Elevated session prompts now authenticate against the original user, when impersonating a user. (#16052)
  • Added several new icons.
  • Added pc/* commands as an alias of project-config/*.
  • Added the resave/all command.
  • Added the users/remove-2fa command. (#16053)
  • Added the --except, --minor-only, and --patch-only options to the update command. (#15829)
  • Added the --with-fields option to all native resave/* commands.
  • The fields/merge and fields/auto-merge commands now prompt to resave elements that include relational fields before merging them, and provide a CLI command that should be run on other environments before the changes are deployed to them. (#15869)

Development

  • Added the encodeUrl() Twig function. (#15838)
  • {% cache %} tags now support setting the duration number to an expression. (#15970)
  • Added support for passing aliased field handles into element queries’ select()/addSelect() methods. (#15827)
  • Added support for appending subpaths to environment variable names in environmental settings (e.g. $PRIMARY_SITE_URL/uploads).

Extensibility

  • Added craft\base\Element::EVENT_REGISTER_CARD_ATTRIBUTES.
  • Added craft\base\Element::EVENT_REGISTER_DEFAULT_CARD_ATTRIBUTES.
  • Added craft\base\Element::defineCardAttributes().
  • Added craft\base\Element::defineDefaultCardAttributes().
  • Added craft\base\ElementInterface::attributePreviewHtml().
  • Added craft\base\ElementInterface::cardAttributes().
  • Added craft\base\ElementInterface::defaultCardAttributes().
  • Added craft\base\ElementInterface::indexViewModes().
  • Added craft\base\NestedElementTrait::saveOwnership(). (#15894)
  • Added craft\base\PreviewableFieldInterface::previewPlaceholderHtml().
  • Added craft\base\RequestTrait::getIsWebRequest(). (#15690)
  • Added craft\base\conditions\BaseElementSelectConditionRule::elementSelectConfig().
  • Added craft\console\Controller::output().
  • Added craft\console\controllers\ResaveController::hasTheFields().
  • Added craft\elements\db\NestedElementQueryTrait. (#15894)
  • Added craft\events\ApplyFieldSaveEvent. (#15872)
  • Added craft\events\DefineAddressCountriesEvent. (#15711)
  • Added craft\events\RegisterElementCardAttributesEvent.
  • Added craft\events\RegisterElementDefaultCardAttributesEvent.
  • Added craft\fieldlayoutelements\Template::$templateMode. (#15932)
  • Added craft\fields\data\LinkData::$target.
  • Added craft\fields\data\LinkData::setLabel().
  • Added craft\filters\BasicHttpAuthLogin. (#15720)
  • Added craft\filters\BasicHttpAuthStatic. (#15720)
  • Added craft\filters\ConditionalFilterTrait. (#15948)
  • Added craft\filters\UtilityAccess.
  • Added craft\helpers\Console::$outputCount.
  • Added craft\helpers\Console::$prependNewline.
  • Added craft\helpers\Console::indent().
  • Added craft\helpers\Console::indentStr().
  • Added craft\helpers\Console::outdent().
  • Added craft\helpers\Cp::cardPreviewHtml().
  • Added craft\helpers\Cp::cardViewDesignerHtml().
  • Added craft\helpers\Cp::rangeFieldHtml(). (#15972)
  • Added craft\helpers\Cp::rangeHtml(). (#15972)
  • Added craft\helpers\ElementHelper::linkAttributeHtml().
  • Added craft\helpers\ElementHelper::uriAttributeHtml().
  • Added craft\helpers\Session::addFlash().
  • Added craft\helpers\Session::getAllFlashes().
  • Added craft\helpers\Session::getFlash().
  • Added craft\helpers\Session::hasFlash().
  • Added craft\helpers\Session::removeAllFlashes().
  • Added craft\helpers\Session::removeFlash().
  • Added craft\helpers\StringHelper::firstLine().
  • Added craft\helpers\UrlHelper::encodeUrl(). (#15838)
  • Added craft\log\MonologTarget::getAllowLineBreaks().
  • Added craft\log\MonologTarget::getFormatter().
  • Added craft\log\MonologTarget::getLevel().
  • Added craft\log\MonologTarget::getMaxFiles().
  • Added craft\log\MonologTarget::getName().
  • Added craft\log\MonologTarget::getProcessor().
  • Added craft\log\MonologTarget::getUseMicrosecondTimestamps().
  • Added `craft\mo...
Read more