summaryrefslogtreecommitdiffstats
path: root/lib/redmine/sudo_mode.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/sudo_mode.rb')
-rw-r--r--lib/redmine/sudo_mode.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/redmine/sudo_mode.rb b/lib/redmine/sudo_mode.rb
index 806d06788..8044fa252 100644
--- a/lib/redmine/sudo_mode.rb
+++ b/lib/redmine/sudo_mode.rb
@@ -124,6 +124,7 @@ module Redmine
@sudo_form.original_fields = params.slice(*param_names)
# a simple 'render "sudo_mode/new"' works when used directly inside an
# action, but not when called from a before_action:
+ no_store
respond_to do |format|
format.html {render 'sudo_mode/new'}
format.js {render 'sudo_mode/new'}