Showing
2 changed files
with
5 additions
and
4 deletions
| ... | @@ -145,6 +145,11 @@ class PageRepo extends EntityRepo | ... | @@ -145,6 +145,11 @@ class PageRepo extends EntityRepo |
| 145 | { | 145 | { |
| 146 | $draftPage->fill($input); | 146 | $draftPage->fill($input); |
| 147 | 147 | ||
| 148 | + // Save page tags if present | ||
| 149 | + if(isset($input['tags'])) { | ||
| 150 | + $this->tagRepo->saveTagsToEntity($draftPage, $input['tags']); | ||
| 151 | + } | ||
| 152 | + | ||
| 148 | $draftPage->slug = $this->findSuitableSlug($draftPage->name, $draftPage->book->id); | 153 | $draftPage->slug = $this->findSuitableSlug($draftPage->name, $draftPage->book->id); |
| 149 | $draftPage->html = $this->formatHtml($input['html']); | 154 | $draftPage->html = $this->formatHtml($input['html']); |
| 150 | $draftPage->text = strip_tags($draftPage->html); | 155 | $draftPage->text = strip_tags($draftPage->html); | ... | ... |
-
Please register or sign in to post a comment