From 9b4e49046b2eccd0200fb1de0bfa288e01b0e916 Mon Sep 17 00:00:00 2001 From: Herb v/d Dool Date: Tue, 14 Feb 2023 14:38:03 -0500 Subject: [PATCH] dev/core#4127 use userSystem method to check for Views --- CRM/Custom/Form/Group.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Custom/Form/Group.php b/CRM/Custom/Form/Group.php index be0ac00fdd..07499e96da 100644 --- a/CRM/Custom/Form/Group.php +++ b/CRM/Custom/Form/Group.php @@ -401,7 +401,7 @@ class CRM_Custom_Form_Group extends CRM_Core_Form { // prompt Drupal Views users to update $db_prefix in settings.php, if necessary global $db_prefix; $config = CRM_Core_Config::singleton(); - if (is_array($db_prefix) && $config->userSystem->is_drupal && module_exists('views')) { + if (is_array($db_prefix) && $config->userSystem->viewsExists()) { // get table_name for each custom group $tables = []; $sql = "SELECT table_name FROM civicrm_custom_group WHERE is_active = 1"; -- 2.25.1