Skip to content

Releases: craftcms/cms

5.2.0-beta.5

08 Jun 14:35
5.2.0-beta.5
8db60d9
Compare
Choose a tag to compare
5.2.0-beta.5 Pre-release
Pre-release
  • Fixed an error that occurred when using a multi-environment config. (#15154)
  • Fixed a bug where the users/login action wasn’t checking if someone was already logged in. (#15168)

5.2.0-beta.4

07 Jun 22:02
5.2.0-beta.4
3cedc80
Compare
Choose a tag to compare
5.2.0-beta.4 Pre-release
Pre-release
  • Matrix fields in cards view and Addresses fields now show which nested entries/addresses contain validation errors. (#15161)
  • Improved the accessibility of two-step verification steps on the control panel login screen. (#15145)
  • Improved the accessibility of global nav items with subnavs. (#15006)
  • The secondary nav is now kept open during source selection for mobile viewports, preventing focus from being dropped. (#14946)
  • User edit screens’ document titles have been updated to describe the page purpose. (#14946)
  • Fixed an error that could occur if a Local filesystem wasn’t configured with a base path.
  • Fixed a bug where some entries could be missing content after upgrading to Craft 5. (#15150)
  • Fixed a bug where it wasn’t always possible to add new entries to Matrix fields in inline-editable blocks view, if the field’s Max Entries setting had been reached before page load. (#15158)
  • Fixed an error that could occur when rendering the “My Drafts” widget. (#14749)
  • Fixed a bug where element indexes’ “Date Created” columns were mislabeled as “Date Uploaded”. (#15155)
  • Fixed a bug where the content pane had extra padding on pages without a meta sidebar.
  • Fixed a bug where reordered field layout tabs/elements weren’t getting saved. (#15154)
  • Fixed a PHP error. (#15160)

5.1.10

07 Jun 22:00
5.1.10
3fe8e67
Compare
Choose a tag to compare
  • Fixed an error that could occur if a Local filesystem wasn’t configured with a base path.
  • Fixed a bug where some entries could be missing content after upgrading to Craft 5. (#15150)
  • Fixed a bug where it wasn’t always possible to add new entries to Matrix fields in inline-editable blocks view, if the field’s Max Entries setting had been reached before page load. (#15158)
  • Fixed an error that could occur when rendering the “My Drafts” widget. (#14749)

5.2.0-beta.3

05 Jun 16:19
5.2.0-beta.3
f459d3c
Compare
Choose a tag to compare
5.2.0-beta.3 Pre-release
Pre-release
  • Fixed an error that could occur when executing an element query with a custom field param. (#15147)

5.2.0-beta.2

05 Jun 02:09
5.2.0-beta.2
c806588
Compare
Choose a tag to compare
5.2.0-beta.2 Pre-release
Pre-release
  • Element indexes will now show a confirmation dialog when cancelling a bulk inline edit. (#15139, #15142)
  • The collect() Twig function now returns a craft\elements\ElementCollection instance if all of the items are elements.
  • Fixed a bug where element editor slideouts weren’t handling form submits properly. (#15128)
  • Fixed a bug where bulk element actions weren’t working on provisional drafts. (#15130)
  • Fixed a bug where relations weren’t saving for elements that had a provisional draft. (#15129)
  • Fixed a bug where elements with long titles could cause the content pane to outgrow its container. (#15141)
  • Fixed a bug where the db/backup command could fail on Windows. (#15090)
  • Fixed an error that could occur when applying project config changes if a site was deleted. (#14373)
  • Fixed an error that could occur when creating an entry via a slideout, if the slideout was submitted before the entry was autosaved. (#15134)
  • Fixed a bug where upgrading from Craft CMS 4.4 was allowed even though the migrations assumed 4.5 or later was installed. (#15133)
  • Fixed an error that occurred when bulk inline editing an unpublished draft. (#15138)

5.1.9

05 Jun 16:18
5.1.9
72226af
Compare
Choose a tag to compare
  • Fixed a bug where the db/backup command could fail on Windows. (#15090)
  • Fixed an error that could occur when applying project config changes if a site was deleted. (#14373)
  • Fixed an error that could occur when creating an entry via a slideout, if the slideout was submitted before the entry was autosaved. (#15134)
  • Fixed a bug where upgrading from Craft CMS 4.4 was allowed even though the migrations assumed 4.5 or later was installed. (#15133)
  • Fixed an error that occurred when bulk inline editing an unpublished draft. (#15138)

4.10.0-beta.2

05 Jun 16:01
4.10.0-beta.2
8213d0f
Compare
Choose a tag to compare
4.10.0-beta.2 Pre-release
Pre-release
  • The collect() Twig function now returns a craft\elements\ElementCollection instance if all of the items are elements.
  • Fixed a bug where the db/backup command could fail on Windows. (#15090)
  • Fixed an error that could occur when applying project config changes if a site was deleted. (#14373)

4.9.7

05 Jun 15:58
4.9.7
10ec889
Compare
Choose a tag to compare
  • Fixed a bug where the db/backup command could fail on Windows. (#15090)
  • Fixed an error that could occur when applying project config changes if a site was deleted. (#14373)

5.2.0-beta.1

03 Jun 17:34
5.2.0-beta.1
33b3fb0
Compare
Choose a tag to compare
5.2.0-beta.1 Pre-release
Pre-release

Content Management

  • Live Preview now supports tabs, UI elements, and tab/field conditions. (#15112)
  • Live Preview now has a dedicated “Save” button. (#15112)
  • It’s now possible to edit assets’ alternative text from the Assets index page. (#14893)
  • Double-clicking anywhere within a table row on an element index page will now open the element’s editor slideout. (#14379)
  • Element index checkboxes no longer have a lag when deselected, except within element selection modals. (#14896)
  • Relational field condition rules no longer factor in the target elements’ statuses or sites. (#14989)
  • Element cards now display provisional changes, with an “Edited” label. (#14975)
  • Improved mobile styling. (#14910)
  • Improved the look of slideouts.
  • Table views within element index pages are no longer scrolled directly. (#14927)
  • Improved the look of user gradicons when selected.
  • “Save and continue editing” actions now restore the page’s scroll position on reload.
  • “Remove” element actions within relational fields will now remove all selected elements, if the target element is selected. (#15078)
  • Action menus are now displayed within the page toolbar, rather than in the breadcrumbs. (#14913, #15070)
  • Site menus within element selector modals now filter out sites that don’t have any sources. (#15091)
  • The meta sidebar toggle has been moved into the gutter between the content pane and meta sidebar. (#15117)

Accessibility

  • Added the “Status” column option to category, entry, and user indexes. (#14968)
  • Element cards now display a textual status label rather than just the indicator. (#14968)
  • Darkened the color of page sidebar toggle icons to meet the minimum contrast for UI components.
  • Darkened the color of context labels to meet the minimum contrast for text.
  • Darkened the color of footer links to meet the minimum contrast for text.
  • Set the language of the Craft edition in the footer, to improve screen reader pronunciation for non-English languages.
  • The accessible name of “Select site” buttons is now translated to the current language.

Administration

  • Added the --format option to the db/backup and db/restore commands for PostgreSQL installs. (#14931)
  • The db/restore command now autodetects the backup format for PostgreSQL installs, if --format isn’t passed. (#14931)
  • The install command and web-based installer now validate the existing project config files at the outset, and abort installation if there are any issues.
  • The resave/entries command now has an --all-sections flag.
  • The web-based installer now displays the error message when installation fails.
  • Edit Entry Type pages now have a “Delete” action. (#14983)
  • After creating a new field, field layout designers now set their search value to the new field’s name. (#15080)
  • GraphQL schema edit pages now have a “Save and continue editing” alternate action.
  • Volumes’ “Subpath” and “Transform Subpath” settings can now be set to environment variables. (#15087)
  • The system edition can now be defined by a CRAFT_EDITION environment variable. (#15094)
  • The rebrand assets path can now be defined by a CRAFT_REBRAND_PATH environment variable. (#15110)

Development

  • Added the {% expires %} tag, which simplifies setting cache headers on the response. (#14969)
  • Added the withCustomFields element query param. (#15003)
  • Entry queries now support passing * to the section param, to filter the results to all section entries. (#14978)
  • Element queries now support passing an element instance, or an array of element instances/IDs, to the draftOf param.
  • Added craft\elements\ElementCollection::find(), which can return an element or elements in the collection based on a given element or ID. (#15023)
  • Added craft\elements\ElementCollection::fresh(), which reloads each of the collection elements from the database. (#15023)
  • craft\elements\ElementCollection::contains() now returns true if an element is passed in and the collection contains an element with the same ID and site ID; or if an integer is passed in and the collection contains an element with the same ID. (#15023)
  • craft\elements\ElementCollection::countBy(), collapse(), flatten(), keys(), pad(), pluck(), and zip() now return an Illuminate\Support\Collection object. (#15023)
  • craft\elements\ElementCollection::diff() and intersect() now compare the passed-in elements to the collection elements by their IDs and site IDs. (#15023)
  • craft\elements\ElementCollection::flip() now throws an exception, as element objects can’t be used as array keys. (#15023)
  • craft\elements\ElementCollection::map() and mapWithKeys() now return an Illuminate\Support\Collection object, if any of the mapped values aren’t elements. (#15023)
  • craft\elements\ElementCollection::merge() now replaces any elements in the collection with passed-in elements, if their ID and site ID matches. (#15023)
  • craft\elements\ElementCollection::only() and except() now compare the passed-in values to the collection elements by their IDs, if an integer or array of integers is passed in. (#15023)
  • craft\elements\ElementCollection::unique() now returns all elements with unique IDs, if no key is passed in. (#15023)

Extensibility

  • Improved type definitions for craft\db\Query, element queries, and craft\elements\ElementCollection.
  • Added craft\base\NestedElementTrait::$updateSearchIndexForOwner.
  • Added craft\db\getBackupFormat().
  • Added craft\db\getRestoreFormat().
  • Added craft\db\setBackupFormat().
  • Added craft\db\setRestoreFormat().
  • Added craft\enums\Color::tryFromStatus().
  • Added craft\events\InvalidateElementcachesEvent::$element.
  • Added craft\fields\BaseRelationField::existsQueryCondition().
  • Added craft\helpers\Cp::componentStatusIndicatorHtml().
  • Added craft\helpers\Cp::componentStatusLabelHtml().
  • Added craft\helpers\Cp::statusLabelHtml().
  • Added craft\helpers\DateTimeHelper::relativeTimeStatement().
  • Added craft\helpers\DateTimeHelper::relativeTimeToSeconds().
  • Added craft\helpers\ElementHelper::swapInProvisionalDrafts().
  • Added craft\helpers\StringHelper::indent().
  • Added craft\models\Volume::getTransformSubpath().
  • Added craft\models\Volume::setTransformSubpath().
  • Added craft\queue\Queue::getJobId().
  • craft\base\Element::defineTableAttributes() now returns common attribute definitions used by most element types.
  • craft\elements\ElementCollection::with() now supports collections made up of multiple element types.
  • craft\models\Volume::getSubpath() now has a $parse argument.
  • craft\services\Drafts::applyDraft() now has a $newAttributes argument.
  • Added the reloadOnBroadcastSave setting to Craft.ElementEditor. (#14814)
  • Added the waitForDoubleClicks setting to Garnish.Select, Craft.BaseElementIndex, and Craft.BaseElementIndexView.

System

  • Improved overall system performance. (#15003)
  • Improved the performance of exists() element queries.
  • Improved the performance of craft\base\Element::toArray().
  • The Debug Toolbar now pre-serializes objects stored as request parameters, fixing a bug where closures could prevent the entire Request panel from showing up. (#14982)
  • Batched queue jobs now verify that they are still reserved before each step, and before spawning additional batch jobs. (#14986)
  • The search keyword index is now updated for owner elements, when a nested element is saved directly which belongs to a searchable custom field.
  • Updated Yii to 2.0.50. (#15124)
  • Updated inputmask to 5.0.9.

5.1.8

03 Jun 17:25
5.1.8
a41b83e
Compare
Choose a tag to compare
  • Added craft\helpers\Gql::isIntrospectionQuery().
  • craft\helpers\Html::id() now allows IDs to begin with numbers. (#15066)
  • Fixed a bug where some condition rules weren’t getting added when applying project config changes, if they depended on another component which hadn’t been added yet. (#15037)
  • Fixed a bug where entry type condition rules prefixed their option labels with section names. (#15075)
  • Fixed a bug where GraphQL queries could be misidentified as introspection queries. (#15100)
  • Fixed an error that could occur when calling craft\base\FieldLayoutComponent::getAttributes() if the $elementType property wasn’t set yet. (#15074)
  • Fixed a bug where nested entry titles weren’t getting included in the owner element’s search keywords. (#15025)
  • Fixed a bug where craft\elements\Address::toArray() would include a saveOwnership key in its response array.
  • Fixed a bug where nested entry and address edit pages could have a “Delete for site” action.
  • Fixed a bug where field layout designers weren’t displaying native fields in the library pane when a tab was removed that contained them. (#15064)
  • Fixed a bug where recent textual changes could be lost when creating a new inline-editable Matrix block, if the block was created before the autosave had a chance to initiate. (#15069)
  • Fixed a bug where the users/create command would fail without explaining why, when the maximum number of users had already been reached.
  • Fixed a validation error that could occur when saving an entry on Craft Solo. (#15082)
  • Fixed an error that could occur on an element edit page, if a Matrix field’s Propagation Method was set to “Custom…”, but its Propagation Key Format wasn’t filled in.
  • Fixed a bug where Matrix block invalidation errors weren’t getting grouped by block when set on the parent element, for blocks that didn’t have uid values. (#15103)
  • Fixed a bug where auto-generated entry titles weren’t getting validated to ensure they weren’t too long. (#15102)
  • Fixed a bug where field conditions weren’t working reliably for nested entries within Matrix fields set to the inline-editable blocks view mode. (#15104)
  • Fixed a bug where the serve command could hang. (#14977)
  • Fixed a bug where nested entry edit pages would always redirect to the Entries index, even if they were nested under a different element type. (#15101)
  • Fixed an error that occurred when attempting to delete a global set without a field layout. (#15123)