Added deletion of revisions on page delete

Added testing to cover.
Closes #2668
This commit is contained in:
Dan Brown
2021-05-26 16:40:56 +01:00
parent d326417edc
commit eb76e882c5
3 changed files with 43 additions and 3 deletions

View File

@ -151,6 +151,7 @@ class TrashCan
protected function destroyPage(Page $page): int
{
$this->destroyCommonRelations($page);
$page->allRevisions()->delete();
// Delete Attached Files
$attachmentService = app(AttachmentService::class);