Skip to content

Commit

Permalink
Fixes #36372 - Show correct config name during create\update\delete
Browse files Browse the repository at this point in the history
  • Loading branch information
sayan3296 authored and chris1984 committed May 9, 2023
1 parent da5a531 commit e721dcf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/controllers/foreman_virt_who_configure/configs_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def new
def create
@config = Config.new(config_params)
if @config.save
process_success :success_redirect => foreman_virt_who_configure_config_path(@config), :object => @config
process_success :success_redirect => foreman_virt_who_configure_config_path(@config), :object => @config.name
else
render 'new'
end
Expand All @@ -50,17 +50,17 @@ def edit

def update
if @config.update(config_params)
process_success :object => @config
process_success :object => @config.name
else
process_error :object => @config
process_error :object => @config.name
end
end

def destroy
if @config.destroy
process_success :object => @config
process_success :object => @config.name
else
process_error :object => @config
process_error :object => @config.name
end
end

Expand Down

0 comments on commit e721dcf

Please sign in to comment.