diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-11-30 14:01:40 +0000 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2012-11-30 14:01:40 +0000 |
commit | 044d34c09f446cfca04e8ff1c53a3c5435cf77d8 (patch) | |
tree | 56b02a22c69b83c9c31da02d7bfdcadb48a536ac | |
parent | 1459686965ca91ce7ac5af1b4d1ab3da829685c5 (diff) |
Re-set raised_at if the alert has just been unacknowledged.
-rw-r--r-- | lib/mauve/alert.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mauve/alert.rb b/lib/mauve/alert.rb index 6138664..a9fff94 100644 --- a/lib/mauve/alert.rb +++ b/lib/mauve/alert.rb @@ -455,7 +455,7 @@ module Mauve self.acknowledged_by = nil self.acknowledged_at = nil self.will_unacknowledge_at = nil - self.raised_at = at if self.raised_at.nil? + self.raised_at = at if self.raised_at.nil? or self.was_acknowledged? self.will_raise_at = nil self.cleared_at = nil # Don't clear will_clear_at |