From ffef3c1ade2001250beb8ac614872459fbbc051a Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Wed, 9 Feb 2022 22:40:49 -0500 Subject: [PATCH] APIv4 - remove unnecessary field from System::check Following on #22730, this removes the 'severity' field from the System::check api because it's redundant with 'severity_id:name', and does not appear to be used anywhere. --- Civi/Api4/Action/System/Check.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Civi/Api4/Action/System/Check.php b/Civi/Api4/Action/System/Check.php index 19df2a2a11..86ab4cbb55 100644 --- a/Civi/Api4/Action/System/Check.php +++ b/Civi/Api4/Action/System/Check.php @@ -83,13 +83,6 @@ class Check extends \Civi\Api4\Generic\BasicGetAction { 'description' => 'crm-i class of icon to display with message', 'data_type' => 'String', ], - [ - 'name' => 'severity', - 'title' => 'Severity', - 'description' => 'Psr\Log\LogLevel string', - 'data_type' => 'String', - 'options' => array_combine(\CRM_Utils_Check::getSeverityList(), \CRM_Utils_Check::getSeverityList()), - ], [ 'name' => 'severity_id', 'title' => 'Severity ID', @@ -100,7 +93,7 @@ class Check extends \Civi\Api4\Generic\BasicGetAction { [ 'name' => 'is_visible', 'title' => 'is visible', - 'description' => '0 if message has been hidden by the user', + 'description' => 'FALSE if message has been hidden by the user', 'data_type' => 'Boolean', ], [ -- 2.25.1