Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d3db1549
Commit
d3db1549
authored
Feb 06, 2018
by
Francisco Javier López
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update wiki_page.rb
parent
bc71bbec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
app/models/wiki_page.rb
app/models/wiki_page.rb
+0
-8
No files found.
app/models/wiki_page.rb
View file @
d3db1549
...
...
@@ -213,11 +213,7 @@ class WikiPage
last_commit_sha
=
attrs
.
delete
(
:last_commit_sha
)
if
last_commit_sha
&&
last_commit_sha
!=
self
.
last_commit_sha
<<<<<<<
HEAD
raise
PageChangedError
.
new
(
"WikiEdit|You are attempting to update a page that has changed since you started editing it."
)
=======
raise
PageChangedError
>>>>>>>
upstream
/
master
end
update_attributes
(
attrs
)
...
...
@@ -227,11 +223,7 @@ class WikiPage
if
wiki
.
find_page
(
page_details
).
present?
@attributes
[
:title
]
=
@page
.
url_path
<<<<<<<
HEAD
raise
PageRenameError
.
new
(
"WikiEdit|There is already a page with the same title in that path."
)
=======
raise
PageRenameError
>>>>>>>
upstream
/
master
end
else
page_details
=
@page
.
url_path
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment