提交 b5df3bff 编写于 作者: J Jose Ivan Vargas

Updated the #create action to render the show view in case of a form error

上级 44bb70c8
......@@ -26,10 +26,10 @@ class Projects::VariablesController < Projects::ApplicationController
if @variable.valid? && @project.variables << @variable
flash[:notice] = 'Variables were successfully updated.'
redirect_to namespace_project_settings_ci_cd_path(project.namespace, project)
else
flash[:alert] = @variable.errors.full_messages.join(',').html_safe
render "show"
end
redirect_to namespace_project_settings_ci_cd_path(project.namespace, project)
end
def destroy
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册