GitLab steht Mittwoch, den 23. September, zwischen 10:00 und 12:00 Uhr aufgrund von Wartungsarbeiten nicht zur Verfügung.

Commit 559ef41d authored by Sebastian Klier's avatar Sebastian Klier

improve check if wiki page is persisted

parent dac548b3
......@@ -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.'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment