1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Added Default Templates for Chapters

This commit is contained in:
Sascha
2024-01-01 21:58:49 +01:00
committed by GitHub
parent b191d8f99f
commit 70bfebcd7c
9 changed files with 131 additions and 9 deletions

View File

@ -208,6 +208,12 @@ class TrashCan
$page->forceDelete();
// Remove chapter template usages
Chapter::query()->where('default_template_id', '=', $page->id)
->update(['default_template_id' => null]);
$page->forceDelete();
return 1;
}