Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2016-05-15 14:15:05 +0100
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
eebad3e2a0daba8e2fb2c3a50f2915f22964bd40
eebad3e2
1 parent
db2af472
Fixed tags not being saved on new pages
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
.travis.yml
app/Repos/PageRepo.php
.travis.yml
View file @
eebad3e
...
...
@@ -2,12 +2,8 @@ language: php
php
:
-
7.0
node_js
:
-
"
4.1.2"
cache
:
directories
:
-
node_modules
-
vendor
addons
:
...
...
app/Repos/PageRepo.php
View file @
eebad3e
...
...
@@ -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
);
...
...
Please
register
or
sign in
to post a comment