diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-05-03 18:43:24 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-05-03 18:43:24 +0100 |
commit | 757853bb96c2f75bcb28f16fcf80601abee48033 (patch) | |
tree | 3f7fbd1b8340dea689a9cbe3c0cde933162e7660 /lib/mauve/web_interface.rb | |
parent | 442e97f45ca582fdfbdd57f558e9fa82c8dfd4d3 (diff) |
Username is now recorded in the History wherever possible.
Diffstat (limited to 'lib/mauve/web_interface.rb')
-rw-r--r-- | lib/mauve/web_interface.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/mauve/web_interface.rb b/lib/mauve/web_interface.rb index fb19abd..5919bb6 100644 --- a/lib/mauve/web_interface.rb +++ b/lib/mauve/web_interface.rb @@ -252,7 +252,7 @@ EOF # unless note.to_s.empty? note = Alert.remove_html(note) - h = History.new(:alerts => succeeded, :type => "note", :event => session['username']+" noted "+note.to_s) + h = History.new(:alerts => succeeded, :type => "note", :event => note.to_s, :user => session['username']) logger.debug h.errors unless h.save end @@ -377,7 +377,7 @@ EOF # Add the note # unless note.to_s.empty? - h = History.new(:alerts => [alert], :type => "note", :event => session['username']+" noted "+note.to_s) + h = History.new(:alerts => [alert], :type => "note", :event => note.to_s, :user => session['username']) logger.debug h.errors unless h.save end |