mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-10-01 01:36:00 -04:00
Update TrashCan.php
remove duplicate call of $page->forceDelete();
This commit is contained in:
parent
70bfebcd7c
commit
8c6b116472
@ -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]);
|
||||
|
Loading…
Reference in New Issue
Block a user