From ebbc4d77beed80942ec527d7f5ef0d38a39deea1 Mon Sep 17 00:00:00 2001 From: Jonathan Date: Mon, 8 Jan 2024 08:39:58 +0100 Subject: [PATCH] #12527 redirect to all messages --- pandora_console/include/functions_notifications.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/pandora_console/include/functions_notifications.php b/pandora_console/include/functions_notifications.php index c65c475550..f511450ad1 100644 --- a/pandora_console/include/functions_notifications.php +++ b/pandora_console/include/functions_notifications.php @@ -1137,6 +1137,15 @@ function notifications_print_dropdown() $mess = []; } + $redirection_notifications = html_print_menu_button( + [ + 'href' => 'javascript:', + 'class' => 'notification_menu_actions', + 'text' => __('View all messages'), + 'onClick' => "window.location='".ui_get_full_url('index.php?sec=message_list&sec2=operation/messages/message_list')."'", + ], + true + ); $notification_menu = html_print_menu_button( [ 'href' => 'javascript:', @@ -1154,6 +1163,7 @@ function notifications_print_dropdown()
+
%s @@ -1166,6 +1176,7 @@ function notifications_print_dropdown() ", $notification_filter, $notification_menu, + $redirection_notifications, array_reduce( $mess, function ($carry, $message) {