Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAram Visser <hello@aramvisser.com>2018-06-25 06:19:13 +0300
committerAram Visser <hello@aramvisser.com>2018-06-25 06:19:13 +0300
commit0d22b2141f4ba9f75039d9614027b99946f35622 (patch)
tree60836132cbeebe65a5fba2092ea46454f197f0f2 /app/controllers
parent2bac2918b2d6f12d94f739f4b6865b9e9221c642 (diff)
Set flash error message only for current request when updating project
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/projects_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index efb30ba4715..c2492a137fb 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -63,7 +63,7 @@ class ProjectsController < Projects::ApplicationController
redirect_to(edit_project_path(@project))
end
else
- flash[:alert] = result[:message]
+ flash.now[:alert] = result[:message]
format.html { render 'edit' }
end