mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-23 17:01:58 +08:00
Fixed tags not being saved on new pages
This commit is contained in:
parent
db2af47286
commit
eebad3e2a0
|
@ -2,12 +2,8 @@ language: php
|
|||
php:
|
||||
- 7.0
|
||||
|
||||
node_js:
|
||||
- "4.1.2"
|
||||
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
- vendor
|
||||
|
||||
addons:
|
||||
|
|
|
@ -145,6 +145,11 @@ class PageRepo extends EntityRepo
|
|||
{
|
||||
$draftPage->fill($input);
|
||||
|
||||
// Save page tags if present
|
||||
if(isset($input['tags'])) {
|
||||
$this->tagRepo->saveTagsToEntity($draftPage, $input['tags']);
|
||||
}
|
||||
|
||||
$draftPage->slug = $this->findSuitableSlug($draftPage->name, $draftPage->book->id);
|
||||
$draftPage->html = $this->formatHtml($input['html']);
|
||||
$draftPage->text = strip_tags($draftPage->html);
|
||||
|
|
Loading…
Reference in New Issue
Block a user