CRM-17885 - Allow hiding notices on status screen
authorJon goldberg <jon@palantetech.coop>
Wed, 27 Jan 2016 17:17:43 +0000 (12:17 -0500)
committerJon goldberg <jon@palantetech.coop>
Wed, 27 Jan 2016 17:17:43 +0000 (12:17 -0500)
CRM/Utils/Check/Message.php
ang/crmStatusPage/SnoozeOptions.html
ang/crmStatusPage/StatusPageCtrl.js

index 21965bad8e0ac028e38746bc2dccac77229fb9aa..140c1b9b7629dcce489601de340b33031e07a804 100644 (file)
@@ -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(
index f503997cd9493a554b436f62811a837792a15673..b21cb7b9cef738cc4db20a0eec60623dab668029 100644 (file)
@@ -1,7 +1,7 @@
 <div ng-if="!status.is_visible">
   <button ng-click="setPref(status, '', 1)" type="button" >{{ts('Unhide')}}</button>
 </div>
-<div ng-if="status.is_visible && status.severity_id >= 3">
+<div ng-if="status.is_visible && status.severity_id >= 2">
   <button type="button" class="hush-menu-button">{{ts('Hide')}}</button>
   <ul style="display:none;">
     <li ng-click="setPref(status, 'now + 1 week', 0)">{{ts('Remind me again in a week')}}</li>
index 822a392e6d7d7a3d5d20b5b2558c06ad01a04ce1..f1d2966706f7705e927c2dcc1288321db9014e78 100644 (file)
@@ -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;
       };
     });