Skip to content

Commit

Permalink
Merge pull request #4824 from h-kataria/fix_copying_of_report
Browse files Browse the repository at this point in the history
Only update report name in group reports menu when editing a report
  • Loading branch information
mzazrivec authored Oct 25, 2018
2 parents f2e9caf + fc669af commit c0034b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/report_controller/reports/editor.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def miq_report_edit
end
if @rpt.save
# update report name in menu if name is edited
menu_repname_update(@edit[:current][:name], @edit[:new][:name]) if @edit[:current][:name] != @edit[:new][:name]
menu_repname_update(@edit[:current][:name], @edit[:new][:name]) if @edit[:rpt_id] && @edit[:current][:name] != @edit[:new][:name]
AuditEvent.success(build_saved_audit(@rpt, @edit))
@edit[:rpt_id] ?
add_flash(_("Report \"%{name}\" was saved") % {:name => @rpt.name}) :
Expand Down

0 comments on commit c0034b9

Please sign in to comment.