CraftCMS v4.2.4 Release Notes

Release Date: 2022-09-13 // over 1 year ago
  • 🔄 Changed

    • 👍 The “New entry” and “New category” buttons on the Entries and Categories index pages now support Ctrl/Command/middle-clicking to open the edit page in a new window. (#11870)
    • Control panel menus now automatically reposition themselves when the window is resized.
    • 👌 Improved the performance of some element queries on MySQL. (#11825)
    • ⚡️ resave/* commands now have a --touch option. When passed, elements’ dateUpdated timestamps will be updated as they’re resaved. (#11849)
    • Underscores within query param values that begin/end with * are now escaped, so they aren’t treated as wildcard characters by the like condition. (#11898)
    • craft\services\Elements::resaveElements() now has a $touch argument.
    • Disable the preview button while drafts are saving (#11858)

    🛠 Fixed

    • 🛠 Fixed an error that could occur when upgrading to Craft 4, if any Matrix blocks contained null sortOrder values. (#11843)
    • 🛠 Fixed a bug where image transform dimensions could be calculated incorrectly when upscaleImages was false. (#11837)
    • 🛠 Fixed an error that occurred when parsing an image transform string that was missing an interlace type. (#11834)
    • 🛠 Fixed a bug where element caches weren’t being invalidated during garbage collection, so hard-deleted elements could appear to still exist.
    • 🛠 Fixed a bug where image transforms were always getting saved with dateIndexed set to null. (#11863)
    • 🛠 Fixed an error that could occur when rendering front-end templates if there was a problem connecting to the database. (#11855)
    • 🛠 Fixed a bug where Edit Asset pages were showing the “View” button for assets in volumes without public URLs. (#11860)
    • 🛠 Fixed a bug where the Assets index page wasn’t handling failed uploads properly. (#11866)
    • 🛠 Fixed a bug where it was possible to save an asset with a focal point outside its cropped area. (#11875)
    • 🛠 Fixed a bug where element index filter HUDs were unresponsive if another one was already active for a different site/source. (#11880)
    • 🛠 Fixed a bug where newly-created subfolders on the Assets index page could appear to have the wrong indentation.
    • 🛠 Fixed a UI bug where renaming a newly-created volume subfolder didn’t appear to have any effect.
    • 🛠 Fixed a bug where empty URL fields would be marked as changed, even when no change was made to them. (#11908)
    • 🛠 Fixed a UI bug where autosuggest menus weren’t getting filtered when first opened for inputs with existing values. (#11896)
    • 🛠 Fixed a bug where Entry Type condition rules weren’t working for conditions that were applied to a single element. (#11914)
    • 🛠 Fixed a bug where Related To condition rules weren’t working for conditions that were applied to a single element, for cross-site relations. (#11892)
    • 🛠 Fixed a bug where form action keyboard shortcuts weren’t available when a custom select menu was focused. (#11919)
    • 🛠 Fixed a bug where transforming an animated GIF into a WebP file would only include the first frame. (#11889)
    • 🛠 Fixed a bug where craft\models\FieldLayout::createFromConfig() was ignoring id, uid, type, and reservedFieldHandles keys, if set. (#11929)

    🔒 Security

    • 🛠 Fixed XSS vulnerabilities.
    • Password inputs no longer temporarily reveal the password when the Alt key is pressed. (#11930)