mirror of
https://github.com/BookStackApp/BookStack.git
synced 2026-01-03 23:42:28 +03:00
ZIP Exports: Prevent book child page drafts from being included
Added test to cover
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user