From 70c711fe98ee065edcd34bba2622a0235e25ae25 Mon Sep 17 00:00:00 2001 From: Jon goldberg Date: Wed, 29 Apr 2015 12:21:30 -0600 Subject: [PATCH] CRM-13283 - Validation on severity level passed through civicrm_hook_check --- CRM/Utils/Check/Message.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Utils/Check/Message.php b/CRM/Utils/Check/Message.php index 59064da39f..db6804dd12 100644 --- a/CRM/Utils/Check/Message.php +++ b/CRM/Utils/Check/Message.php @@ -76,6 +76,10 @@ class CRM_Utils_Check_Message { $this->name = $name; $this->message = $message; $this->title = $title; + // Handle non-integer severity levels. + if (!CRM_Utils_Rule::integer($level)) { + $level = CRM_Utils_Check::severityMap($level); + } $this->level = $level; } -- 2.25.1