Skip to content

Commit

Permalink
Fixed #16347
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Dec 27, 2024
1 parent e3a22e1 commit aecf225
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
- Fixed a SQL error that could occur if an element was saved with a title longer than 255 characters.
- Fixed an error that could occur when creating nested entries within Matrix fields. ([#16331](https://github.com/craftcms/cms/issues/16331))
- Fixed a bug where element index View menus could include a “Use defaults” button when no view customizations had been made.
- Fixed a bug where new entries’ slugs weren’t getting propagated to other sites, if their entry type had a dynamic title format. ([#16347](https://github.com/craftcms/cms/issues/16347))
- Fixed an RCE vulnerability.

## 5.5.7 - 2024-12-17
Expand Down
2 changes: 1 addition & 1 deletion src/services/Drafts.php
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ public function removeDraftData(ElementInterface $draft): void
try {
// no need to propagate or save content here – and it could end up overriding any
// content changes made to other sites from a previous onAfterPropagate(), etc.
if ($draft->hasErrors() || !Craft::$app->getElements()->saveElement($draft, false, false)) {
if ($draft->hasErrors() || !Craft::$app->getElements()->saveElement($draft, false)) {
throw new InvalidElementException($draft, "Draft $draft->id could not be applied because it doesn't validate.");
}
Db::delete(Table::DRAFTS, [
Expand Down

0 comments on commit aecf225

Please sign in to comment.