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

ZIP Exports: Prevent book child page drafts from being included

Added test to cover
This commit is contained in:
Dan Brown
2024-12-22 12:43:26 +00:00
parent 01825ddb93
commit c84d999456
2 changed files with 31 additions and 2 deletions

View File

@ -70,7 +70,7 @@ class ZipExportBook extends ZipExportModel
foreach ($children as $child) {
if ($child instanceof Chapter) {
$chapters[] = $child;
} else if ($child instanceof Page) {
} else if ($child instanceof Page && !$child->draft) {
$pages[] = $child;
}
}