Project

General

Profile

« Previous | Next » 

Revision 62b5530d

Added by Ohad Levy about 11 years ago

  • ID 62b5530df8f427ea70d098a07cf7a56463f79669

fixes #2481 - invalid state in BMC power dropdown
(cherry picked from commit 930772e27b0c702835f328a7c12e73e0f5f9dbec)

View differences:

app/helpers/bmc_helper.rb
def power_actions
action_buttons(
(PowerManager::SUPPORTED_ACTIONS - [:state]).map do |action|
(PowerManager::SUPPORTED_ACTIONS - ['state']).map do |action|
display_link_if_authorized(_(action.to_s.capitalize), { :action => "power", :id => @host, :power_action => action},
:confirm => _('Are you sure?'), :method => :put)
end

Also available in: Unified diff