From c2a2b7fc2637ecda0cf74dbe3b28e29ac8c64040 Mon Sep 17 00:00:00 2001 From: olatechpro Date: Mon, 12 Aug 2024 12:15:34 +0100 Subject: [PATCH] Remove "Make Viewable" #1636 --- modules/async-notifications/async-notifications.php | 1 - modules/settings/settings.php | 8 ++++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/modules/async-notifications/async-notifications.php b/modules/async-notifications/async-notifications.php index 4ebdea0d..d35cf3b0 100644 --- a/modules/async-notifications/async-notifications.php +++ b/modules/async-notifications/async-notifications.php @@ -78,7 +78,6 @@ public function __construct() 'enabled' => 'on', ], 'options_page' => false, - 'autoload' => true, ]; // Apply a filter to the default options diff --git a/modules/settings/settings.php b/modules/settings/settings.php index 7ba903d0..8f1cdfd7 100644 --- a/modules/settings/settings.php +++ b/modules/settings/settings.php @@ -457,14 +457,18 @@ public function options_page_controller() } //force notification tab if dependent tab is enabled + if ($mod_data->slug == 'async-notifications' && $mod_data->options->enabled === 'on') { + $all_modules['notifications']->options->enabled = 'on'; + } + if (isset($mod_data->notification_options)) { if ($all_modules['notifications']->options->enabled === 'on') { $all_modules['improved_notifications']->options->enabled = 'on'; - $all_modules['async_notifications']->options->enabled = 'on'; + //$all_modules['async_notifications']->options->enabled = 'on'; $all_modules['notifications']->options->enabled = 'on'; } else { $all_modules['improved_notifications']->options->enabled = 'off'; - $all_modules['async_notifications']->options->enabled = 'off'; + //$all_modules['async_notifications']->options->enabled = 'off'; $all_modules['notifications']->options->enabled = 'off'; } break;