A platform for community discussion. Free, open, simple.
FIX: Avoid duplicate problem admin notices (#29329)
Ted Johanssonf31f8cc15fb7
diff --git a/app/models/problem_check_tracker.rb b/app/models/problem_check_tracker.rbindex 4587c296ed4..20b74f52fac 100644--- a/app/models/problem_check_tracker.rb+++ b/app/models/problem_check_tracker.rb@@ -62,7 +62,7 @@ class ProblemCheckTracker < ActiveRecord::Basedef sound_the_alarmadmin_notice.create_with(priority: check.priority,- details: details.merge(target:),+ details: details.merge(target: target || ProblemCheck::NO_TARGET),).find_or_create_by(identifier:)end