diff options
author | Sebastian Klier <sebastian@sebastianklier.com> | 2016-04-05 11:36:43 +0800 |
---|---|---|
committer | Sebastian Klier <sebastian@sebastianklier.com> | 2016-04-20 08:25:41 +0800 |
commit | 559ef41d32db10b79fe7b6cfa42b8cd019ca8415 (patch) | |
tree | 856b124d9d19e643b2a88c723151f95ce9a1237a | |
parent | dac548b32007b7802cf54738aa5fe50f9bf78162 (diff) | |
download | gitlab-ce-559ef41d32db10b79fe7b6cfa42b8cd019ca8415.tar.gz |
improve check if wiki page is persisted
-rw-r--r-- | app/controllers/projects/wikis_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/wikis_controller.rb b/app/controllers/projects/wikis_controller.rb index 804a3a48ac2..c02bc28acef 100644 --- a/app/controllers/projects/wikis_controller.rb +++ b/app/controllers/projects/wikis_controller.rb @@ -57,7 +57,7 @@ class Projects::WikisController < Projects::ApplicationController def create @page = WikiPages::CreateService.new(@project, current_user, wiki_params).execute - if @page + if @page.persisted? redirect_to( namespace_project_wiki_path(@project.namespace, @project, @page), notice: 'Wiki was successfully updated.' |