From 591e26fef28a55aede748d4627d50c628169f7b8 Mon Sep 17 00:00:00 2001 From: demeritcowboy Date: Fri, 31 Dec 2021 10:21:02 -0500 Subject: [PATCH] status used incorrectly in drupal 8 --- CRM/Utils/System/Drupal8.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Utils/System/Drupal8.php b/CRM/Utils/System/Drupal8.php index 310c3eff24..00c035499c 100644 --- a/CRM/Utils/System/Drupal8.php +++ b/CRM/Utils/System/Drupal8.php @@ -553,8 +553,8 @@ class CRM_Utils_System_Drupal8 extends CRM_Utils_System_DrupalBase { $module_data = \Drupal::service('extension.list.module')->reset()->getList(); foreach ($module_data as $module_name => $extension) { - if (!isset($extension->info['hidden']) && $extension->origin != 'core') { - $modules[] = new CRM_Core_Module('drupal.' . $module_name, ($extension->status == 1)); + if (!isset($extension->info['hidden']) && $extension->origin != 'core' && $extension->status == 1) { + $modules[] = new CRM_Core_Module('drupal.' . $module_name, TRUE); } } return $modules; -- 2.25.1