mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-10 21:26:07 +10:00
improve check if wiki page is persisted
This commit is contained in:
@@ -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.'
|
||||
|
||||
Reference in New Issue
Block a user