Skip to content

Commit

Permalink
Fix inconstancy of flash messages for Analysis Profiles and Schedules
Browse files Browse the repository at this point in the history
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1516895

Fix inconstancy of flash messages between addition vs. deletion of Analysis
Profiles and Schedules, under Configuration -> Settings accordion.
  • Loading branch information
Hilda Stastna committed May 15, 2018
1 parent f5936b7 commit a099473
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ def ap_edit
else
AuditEvent.success(ap_build_created_audit_set(scanitemset))
end
add_flash(_("Analysis Profile \"%{name}\" was saved") % {:name => @edit[:new][:name]})
add_flash(_("Analysis Profile \"%{name}\" was saved") % {:name => get_record_display_name(scanitemset)})
aps_list
@scan = @edit[:scan_id] = nil
@edit = session[:edit] = nil # clean out the saved info
Expand Down

0 comments on commit a099473

Please sign in to comment.