mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-27 10:49:45 +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:
|
php:
|
||||||
- 7.0
|
- 7.0
|
||||||
|
|
||||||
node_js:
|
|
||||||
- "4.1.2"
|
|
||||||
|
|
||||||
cache:
|
cache:
|
||||||
directories:
|
directories:
|
||||||
- node_modules
|
|
||||||
- vendor
|
- vendor
|
||||||
|
|
||||||
addons:
|
addons:
|
||||||
|
|
|
@ -145,6 +145,11 @@ class PageRepo extends EntityRepo
|
||||||
{
|
{
|
||||||
$draftPage->fill($input);
|
$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->slug = $this->findSuitableSlug($draftPage->name, $draftPage->book->id);
|
||||||
$draftPage->html = $this->formatHtml($input['html']);
|
$draftPage->html = $this->formatHtml($input['html']);
|
||||||
$draftPage->text = strip_tags($draftPage->html);
|
$draftPage->text = strip_tags($draftPage->html);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user