Project

General

Profile

Patch #23587 » 23587-sudo_mode_refinements.patch

Felix Schäfer, 2016-08-15 10:37

View differences:

app/views/sudo_mode/new.html.erb
1 1
<h2><%= l :label_password_required %></h2>
2
<%= form_tag({}, class: 'tabular', id: 'sudo-form') do %>
2
<%= form_tag({}, method: :post, class: 'tabular', id: 'sudo-form') do %>
3 3

  
4 4
  <%= hidden_field_tag '_method', request.request_method %>
5 5
  <%= hash_to_hidden_fields @sudo_form.original_fields %>
lib/redmine/sudo_mode.rb
90 90
        return true if SudoMode.active?
91 91

  
92 92
        if param_names.blank?
93
          param_names = params.keys - %w(id action controller sudo_password)
93
          param_names = params.keys - %w(id action controller sudo_password _method authenticity_token utf8)
94 94
        end
95 95

  
96 96
        process_sudo_form
    (1-1/1)