Skip to content

Commit

Permalink
Fixed #12925
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Mar 20, 2023
1 parent e39861b commit 96c56f1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- `craft\helpers\Json::encode()` no longer sets the `JSON_UNESCAPED_SLASHES` flag by default.
- Fixed a JavaScript error that occurred when resolving an asset move conflict. ([#12920](https://github.com/craftcms/cms/issues/12920))
- Fixed a bug where volume subfolders were being shown when viewing soft-deleted assets. ([#12927](https://github.com/craftcms/cms/issues/12927))
- Fixed a bug where structure data was getting deleted when running garbage collection on PostgreSQL. ([#12925](https://github.com/craftcms/cms/issues/12925))

## 3.8.3 - 2023-03-16

Expand Down
3 changes: 2 additions & 1 deletion src/services/Gc.php
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,8 @@ private function _deleteOrphanedStructureElements(): void
DELETE FROM $structureElementsTable
USING $structureElementsTable [[se]]
LEFT JOIN $elementsTable [[e]] ON [[e.id]] = [[se.elementId]]
WHERE [[se.elementId]] IS NOT NULL AND [[e.id]] IS NULL
WHERE $structureElementsTable.[[id]] = [[se.id]] AND
[[se.elementId]] IS NOT NULL AND [[e.id]] IS NULL
SQL;
}

Expand Down

0 comments on commit 96c56f1

Please sign in to comment.