Skip to content

Commit 8c6b116

Browse files
authored
Update TrashCan.php
remove duplicate call of $page->forceDelete();
1 parent 70bfebc commit 8c6b116

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

app/Entities/Tools/TrashCan.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,6 @@ protected function destroyPage(Page $page): int
206206
Book::query()->where('default_template_id', '=', $page->id)
207207
->update(['default_template_id' => null]);
208208

209-
$page->forceDelete();
210-
211209
// Remove chapter template usages
212210
Chapter::query()->where('default_template_id', '=', $page->id)
213211
->update(['default_template_id' => null]);

0 commit comments

Comments
 (0)