Skip to content

Releases: craftcms/cms

5.1.3

14 May 18:51
5.1.3
495d5bd
Compare
Choose a tag to compare
  • 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() and normalizeTagAttributes() weren’t handling styles with encoded images via url() 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

14 May 18:50
4.9.3
835bce5
Compare
Choose a tag to compare
  • 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() and normalizeTagAttributes() weren’t handling styles with encoded images via url() properly. (#14964)
  • Fixed a bug where the db/backup command would fail if the destination path contained a space.

5.1.2

07 May 18:44
5.1.2
76de732
Compare
Choose a tag to compare
  • 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

07 May 18:41
4.9.2
fbef5f2
Compare
Choose a tag to compare
  • 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)

5.1.1

02 May 22:28
5.1.1
740d265
Compare
Choose a tag to compare
  • Fixed a bug where disclosure menus weren’t releasing their scroll and resize event listeners on hide. (#14911, #14510)
  • Fixed a bug where it was possible to delete entries from Matrix fields which were configured to display nested entries statically. (#14904, #14915)
  • Fixed an error that could occur when creating a nested entry in a Matrix field. (#14915)
  • Fixed a bug where Matrix fields’ “Max Entries” settings were taking the total number of nested entries across all sites into account, rather than just the nested entries for the current site. (#14932)
  • Fixed a bug where nested entry draft data could get corrupted when a draft was created for the owner element.
  • Fixed a bug where Matrix and Addresses fields could show drafts of their nested elements when in card view.
  • Fixed a bug where nested elements’ breadcrumbs could include the draft label, styled like it was part of the element’s title.
  • Fixed a bug where action buttons might not work for nested entries in Matrix fields set to card view. (#14915)
  • Fixed the styling of tag chips within Tags fields. (#14916)
  • Fixed a bug where field layout component settings slideouts’ footers had extra padding.
  • Fixed a bug where MySQL backups weren’t restorable on certain environments. (#14925)
  • Fixed a bug where app/resource-js requests weren’t working for guest requests. (#14908)
  • Fixed a JavaScript error that occurred after creating a new field within a field layout designer. (#14933)

4.9.1

02 May 22:26
4.9.1
6405731
Compare
Choose a tag to compare
  • Fixed a bug where disclosure menus weren’t releasing their scroll and resize event listeners on hide. (#14911, #14510)
  • Fixed a bug where MySQL backups weren’t restorable on certain environments. (#14925)
  • Fixed a bug where app/resource-js requests weren’t working for guest requests. (#14908)

5.1.0

30 Apr 17:36
5.1.0
963ff6d
Compare
Choose a tag to compare

Content Management

  • Sort options are now sorted alphabetically within element indexes, and custom fields’ options are now listed in a “Fields” group. (#14725)
  • Unselected table column options are now sorted alphabetically within element indexes.
  • Table views within element index pages are now scrolled directly, so that their horizontal scrollbars are always visible without scrolling to the bottom of the page. (#14765)
  • Element tooltips now appear after a half-second delay. (#14836)
  • Thumbnails within element cards are slightly larger.
  • Improved element editor page styling on mobile. (#14898, #14885)

User Management

  • Team edition users are no longer required to be admins.
  • Added the “User Permissions” settings page for managing the permissions of non-admin Team edition users. (#14768)

Administration

  • Element conditions within field layout designers’ component settings now only list custom fields present in the current field layout. (#14787)
  • Improved the behavior of the URI input within Edit Route modals. (#14884)
  • The “Upgrade Craft CMS” page in the Plugin Store no longer lists unsupported editions.
  • Added the asyncCsrfInputs config setting. (#14625)
  • Added the backupCommandFormat config setting. (#14897)
  • The backupCommand config setting can now be set to a closure, which will be passed a mikehaertl\shellcommand\Command object. (#14897)
  • Added the safeMode config setting. (#14734)
  • resave commands now support an --if-invalid option. (#14731)
  • Improved the styling of conditional tabs and UI elements within field layout designers.

Extensibility

  • Added craft\conditions\ConditionInterface::getBuilderConfig().
  • Added craft\controllers\EditUserTrait. (#14789)
  • Added craft\controllers\UsersController::EVENT_DEFINE_EDIT_SCREENS. (#14789)
  • Added craft\elements\conditions\ElementConditionInterface::setFieldLayouts().
  • Added craft\events\DefineEditUserScreensEvent. (#14789)
  • Added craft\helpers\Cp::parseTimestampParam().
  • Added craft\models\FieldLayoutTab::labelHtml().
  • Added craft\services\ProjectConfig::getAppliedChanges(). (#14851)
  • Added craft\web\Request::getBearerToken(). (#14784)
  • Added craft\db\CoalesceColumnsExpression.
  • Added craft\db\ExpressionBuilder.
  • Added craft\db\ExpressionInterface.
  • craft\base\NameTrait::prepareNamesForSave() no longer updates the name properties if fullName, firstName, and lastName are already set. (#14665)
  • craft\helpers\Typecast::properties() now typecasts numeric strings to integers, for int|string properties. (#14618)
  • Added Craft.MatrixInput.Entry. (#14730)

System

  • Batched queue jobs now set their progress based on the total progress across all batches, rather than just the current batch. (#14817)
  • Fixed a bug where ordering by a custom field would only partially work, if the custom field was included in multiple field layouts for the resulting elements. (#14821)
  • Fixed a bug where element conditions within field layout designers’ component settings weren’t listing custom fields which were just added to the layout. (#14787)
  • Fixed a bug where asset thumbnails within element cards were blurry. (#14866)
  • Fixed a styling issue with Categories and Entries fields when “Maintain Hierarchy” was enabled.
  • Fixed a bug where Delete actions weren’t working in admin tables. (craftcms/commerce#3444)

4.9.0

30 Apr 17:34
4.9.0
3597752
Compare
Choose a tag to compare

Content Management

  • It’s now possible to preview revisions. (#14521)
  • Element conditions can now include condition rules for Time fields. (#14616)
  • Sort options are now sorted alphabetically within element indexes, and custom fields’ options are now listed in a “Fields” group. (#14725)
  • Unselected table column options are now sorted alphabetically within element indexes.

Administration

  • Improved the behavior of the URI input within Edit Route modals. (#14884)
  • The “Upgrade Craft CMS” page in the Plugin Store no longer lists unsupported editions.
  • Added the asyncCsrfInputs config setting. (#14625)
  • Added the backupCommandFormat config setting. (#14897)
  • The backupCommand config setting can now be set to a closure, which will be passed a mikehaertl\shellcommand\Command object. (#14897)
  • resave commands now support an --if-invalid option. (#14731)

Development

  • Added the safeMode config setting. (#14734)
  • Added the language element query param, which filters the resulting elements based on their sites’ languages. (#14631)
  • GraphQL responses now include full exception details, when Dev Mode is enabled or an admin is signed in with the “Show full exception views when Dev Mode is disabled” preference enabled. (#14527)
  • craft\helpers\Html::csrfInput() and the csrfInput Twig function now support passing an async key to the options array, overriding the default behavior per the asyncCsrfInputs config setting. (#14625)

Extensibility

  • Added craft\services\ProjectConfig::getAppliedChanges(). (#14851)
  • Added craft\services\Sites::getSitesByLanguage().
  • Added craft\web\ErrorHandler::exceptionAsArray().
  • Added craft\web\ErrorHandler::showExceptionDetails().
  • Added craft\web\Request::getBearerToken(). (#14784)
  • craft\base\NameTrait::prepareNamesForSave() no longer updates the name properties if fullName, firstName, and lastName are already set. (#14665)

System

  • Batched queue jobs now set their progress based on the total progress across all batches, rather than just the current batch. (#14817)
  • Craft now calls setlocale() based on the target language, so that SORT_LOCALE_STRING behaves as expected. (#14509, #14513)
  • Improved the performance of scalar element queries like count().
  • Fixed a bug where craft\elements\db\ElementQuery::count() could return the wrong number if the query had a cached result, with offset or limit params.
  • Console requests no longer filter out info logs. (#14280, #14434)
  • Fixed a styling issue with Categories and Entries fields when “Maintain Hierarchy” was enabled.
  • Fixed a bug where Delete actions weren’t working in admin tables. (craftcms/commerce#3444)

5.0.6

29 Apr 23:03
5.0.6
068eee4
Compare
Choose a tag to compare
  • Fixed a bug where element caches weren’t getting invalidated when an element was moved within a structure. (#14846)
  • Fixed a bug where CSV’s header rows weren’t using the configured delimiter. (#14855)
  • Fixed a bug where editable table cell text styling could change after initial focus. (#14857)
  • Fixed a bug where conditions could list rules with duplicate labels.
  • Fixed a bug where admin tables weren’t displaying disabled statuses. (#14861)
  • Fixed a bug where clicking on drag handles within element index tables could select the element. (#14669)
  • Fixed a bug where nested related categories and entries weren’t directly removable, and could be unintentionally overwritten, when the Categories/Entries field’s “Maintain hierarchy” setting was enabled. (#14843, #14872)
  • Fixed a SQL error that could occur on PostgreSQL. (#14860)
  • Fixed a bug where field layout designers were showing redundant field indicators, for fields with hidden labels. (#14859)
  • Fixed a bug where field type names weren’t sorted alphabetically when editing an existing field. (#14858)
  • Fixed a JavaScript error that could occur when removing elements from an element select input. (#14873)
  • Fixed a bug where queue jobs’ progress indicators in the control panel sidebar weren’t fully cleaned up when jobs were finished. (#14856)
  • Fixed a bug where errors weren’t getting logged. (#14863)
  • Fixed a bug where asset thumbnails could have the wrong aspect ratio. (#14866)
  • Fixed an infinite recursion bug that occurred when selecting elements, if no sources were enabled for the selected site. (#14882)

4.8.11

29 Apr 23:01
4.8.11
6d8ff8d
Compare
Choose a tag to compare
  • Fixed a bug where element caches weren’t getting invalidated when an element was moved within a structure. (#14846)
  • Fixed a bug where CSV’s header rows weren’t using the configured delimiter. (#14855)
  • Fixed a bug where editable table cell text styling could change after initial focus. (#14857)
  • Fixed a bug where conditions could list rules with duplicate labels.
  • Fixed a bug where admin tables weren’t displaying disabled statuses. (#14861)