mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-02 23:56:56 +08:00
Updated pages API to not clear content if not provided
Can now update page details without supplying page content. Added test to cover. Closes #2856
This commit is contained in:
@ -218,8 +218,8 @@ class PageRepo
|
||||
$pageContent = new PageContent($page);
|
||||
if (!empty($input['markdown'] ?? '')) {
|
||||
$pageContent->setNewMarkdown($input['markdown']);
|
||||
} else {
|
||||
$pageContent->setNewHTML($input['html'] ?? '');
|
||||
} else if (isset($input['html'])) {
|
||||
$pageContent->setNewHTML($input['html']);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user