]>
BookStack Code Mirror - bookstack/commitdiff
projects
/
bookstack
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
db2af47
)
Fixed tags not being saved on new pages
author
Dan Brown
<redacted>
Sun, 15 May 2016 13:15:05 +0000
(14:15 +0100)
committer
Dan Brown
<redacted>
Sun, 15 May 2016 13:17:25 +0000
(14:17 +0100)
.travis.yml
patch
|
blob
|
history
app/Repos/PageRepo.php
patch
|
blob
|
history
diff --git
a/.travis.yml
b/.travis.yml
index 96529548568779acd7f522b8bc5550de3ea904a8..ff387bd3dcbe650019e158e17e3e5fc4fdd96748 100644
(file)
--- a/
.travis.yml
+++ b/
.travis.yml
@@
-2,12
+2,8
@@
language: php
php:
- 7.0
-node_js:
- - "4.1.2"
-
cache:
directories:
- - node_modules
- vendor
addons:
diff --git
a/app/Repos/PageRepo.php
b/app/Repos/PageRepo.php
index 992e97cdacaa50077a9538b6bd788c4e6917c1e4..504c3fa3b6f549e0facbaa991e863e80c3a1bcdb 100644
(file)
--- a/
app/Repos/PageRepo.php
+++ b/
app/Repos/PageRepo.php
@@
-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);