From eb94a57646ad86d589b34d203d60850f9b74c19b Mon Sep 17 00:00:00 2001 From: Jon goldberg Date: Wed, 27 Jan 2016 12:17:43 -0500 Subject: [PATCH] CRM-17885 - Allow hiding notices on status screen --- CRM/Utils/Check/Message.php | 4 ++-- ang/crmStatusPage/SnoozeOptions.html | 2 +- ang/crmStatusPage/StatusPageCtrl.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/CRM/Utils/Check/Message.php b/CRM/Utils/Check/Message.php index 21965bad8e..140c1b9b76 100644 --- a/CRM/Utils/Check/Message.php +++ b/CRM/Utils/Check/Message.php @@ -233,8 +233,8 @@ class CRM_Utils_Check_Message { */ private function checkStatusPreference() { $this->hiddenUntil = FALSE; - // Debug, info & notice can't be hidden - if ($this->level < 3) { + // Debug & info can't be hidden + if ($this->level < 2) { return FALSE; } $statusPreferenceParams = array( diff --git a/ang/crmStatusPage/SnoozeOptions.html b/ang/crmStatusPage/SnoozeOptions.html index f503997cd9..b21cb7b9ce 100644 --- a/ang/crmStatusPage/SnoozeOptions.html +++ b/ang/crmStatusPage/SnoozeOptions.html @@ -1,7 +1,7 @@
-
+
  • {{ts('Remind me again in a week')}}
  • diff --git a/ang/crmStatusPage/StatusPageCtrl.js b/ang/crmStatusPage/StatusPageCtrl.js index 822a392e6d..f1d2966706 100644 --- a/ang/crmStatusPage/StatusPageCtrl.js +++ b/ang/crmStatusPage/StatusPageCtrl.js @@ -26,7 +26,7 @@ $scope.countVisible = function(visibility) { return _.filter($scope.statuses, function(s) { - return s.is_visible == visibility && s.severity_id >= 3; + return s.is_visible == visibility && s.severity_id >= 2; }).length; }; }); -- 2.25.1