aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2012-12-05 09:09:33 +0000
committerPatrick J Cherry <patrick@bytemark.co.uk>2012-12-05 09:09:33 +0000
commit685049eb551632e24ea7631f7c85219c16f52322 (patch)
treee5fb9035d8f0ddc9e8b2dae3a2a88647c85ec575
parent4fc0fe5c098eda74805485714434980d22077dbe (diff)
Make sure the update type is always set to cleared by default.
-rw-r--r--lib/mauve/alert.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb
index a9fff94..72568b3 100644
--- a/lib/mauve/alert.rb
+++ b/lib/mauve/alert.rb
@@ -334,8 +334,7 @@ module Mauve
history = nil
if ut.nil?
-
- self.update_type = "cleared" if self.new?
+ self.update_type = "cleared" if self.new? or self.update_type.nil?
else
self.update_type = ut