From 7104c7b4823ebd08bcee058e37f396a060bf4780 Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Tue, 28 Nov 2023 15:27:48 +1300 Subject: [PATCH] Add system check for if people disabled default location type --- CRM/Utils/Check/Component/LocationTypes.php | 47 +++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 CRM/Utils/Check/Component/LocationTypes.php diff --git a/CRM/Utils/Check/Component/LocationTypes.php b/CRM/Utils/Check/Component/LocationTypes.php new file mode 100644 index 0000000000..1a6cf3460b --- /dev/null +++ b/CRM/Utils/Check/Component/LocationTypes.php @@ -0,0 +1,47 @@ + 1, + ]); + $msg = ts('Your site default location type does not exist or is disabled.') + . " " . ts('Configure location types') . ''; + $messages[] = new CRM_Utils_Check_Message( + __FUNCTION__, + $msg, + ts('Location Type Misconfiguration'), + LogLevel::ERROR, + 'fa-lock' + ); + } + return $messages; + } + +} -- 2.25.1