Update TrashCan.php

remove duplicate call of $page->forceDelete();
This commit is contained in:
Sascha 2024-01-23 21:37:00 +01:00 committed by GitHub
parent 70bfebcd7c
commit 8c6b116472
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -206,8 +206,6 @@ class TrashCan
Book::query()->where('default_template_id', '=', $page->id)
->update(['default_template_id' => null]);
$page->forceDelete();
// Remove chapter template usages
Chapter::query()->where('default_template_id', '=', $page->id)
->update(['default_template_id' => null]);