From: Jon goldberg Date: Wed, 27 Jan 2016 17:17:43 +0000 (-0500) Subject: CRM-17885 - Allow hiding notices on status screen X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=eb94a57646ad86d589b34d203d60850f9b74c19b;p=civicrm-core.git CRM-17885 - Allow hiding notices on status screen --- 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; }; });