aboutsummaryrefslogtreecommitdiff
path: root/lib/mauve
diff options
context:
space:
mode:
Diffstat (limited to 'lib/mauve')
-rw-r--r--lib/mauve/alert.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb
index e6d1bae..24b9dae 100644
--- a/lib/mauve/alert.rb
+++ b/lib/mauve/alert.rb
@@ -824,7 +824,10 @@ module Mauve
#
alert.id = Alert.remove_html(alert.id.to_s)
- alert_db = first(:alert_id => alert.id, :source => update.source) ||
+ #
+ # Load the database alert, and all its properties, since we're updating.
+ #
+ alert_db = first(:alert_id => alert.id, :source => update.source, :fields => Alert.properties) ||
new(:alert_id => alert.id, :source => update.source)
##