diff --git a/pandora_console/general/header.php b/pandora_console/general/header.php
index 485425ec62..add3ab4019 100644
--- a/pandora_console/general/header.php
+++ b/pandora_console/general/header.php
@@ -532,6 +532,54 @@ echo sprintf('
",
+ $notification_filter,
+ $notification_menu,
array_reduce(
$mess,
function ($carry, $message) {
@@ -1093,6 +1211,8 @@ function notifications_print_dropdown_element($message_info)
$message_info['subject'] = io_safe_input($img);
}
+ $type = explode('.', $message_info['subtype'])[1];
+
if (strlen($body_preview) >= 170) {
$body_preview = substr($body_preview, 0, 150);
$body_preview .= __('. Read More...');
@@ -1103,6 +1223,7 @@ function notifications_print_dropdown_element($message_info)
class='notification-item'
onclick='%s'
id='notification-item-id-%s'
+ value='%s'
href='%s'
target='%s'
>
@@ -1116,8 +1237,9 @@ function notifications_print_dropdown_element($message_info)
",
- $action.';click_on_notification_toast(event)',
+ $action.'; click_on_notification_toast(event)',
$message_info['id_mensaje'],
+ $type,
messages_get_url($message_info['id_mensaje']),
$target,
html_print_image('images/info.svg', true, ['style' => 'height: 40px;margin-left: -20px;margin-top: -40px;']),
diff --git a/pandora_console/include/styles/pandora.css b/pandora_console/include/styles/pandora.css
index 007b2f315d..1d50c8ae0f 100644
--- a/pandora_console/include/styles/pandora.css
+++ b/pandora_console/include/styles/pandora.css
@@ -12358,6 +12358,59 @@ tr[id^="network_component-plugin-snmp-fields-dynamicMacroRow-"] input {
width: 100% !important;
}
+.notificaion_menu_container {
+ display: flex;
+ padding-top: 10px;
+ padding-left: 15px;
+}
+.notification_menu {
+ width: 100px;
+}
+
+.filter_notification {
+ width: auto;
+ min-width: 50px;
+}
+
+#menu-filter_notification * {
+ list-style: none;
+}
+#menu-filter_notification li {
+ line-height: 180%;
+}
+#menu-filter_notification input[name="filter_menu"] {
+ position: absolute;
+ left: -1000em;
+}
+#menu-filter_notification label[id="filter_menu_label"]:before {
+ content: "\025b8";
+ margin-right: 4px;
+}
+#menu-filter_notification
+ input[name="filter_menu"]:checked
+ ~ label[id="filter_menu_label"]:before {
+ content: "\025be";
+}
+#menu-filter_notification .sublevel-filter_notification {
+ display: none;
+}
+#menu-filter_notification input[name="filter_menu"]:checked ~ ul {
+ display: block;
+}
+
+.item-filter > label {
+ display: inline-block;
+ width: auto;
+ vertical-align: middle;
+}
+
+.item-filter > input[type="checkbox"] {
+ display: inline-block;
+ width: 40px;
+ height: 100%;
+ vertical-align: middle;
+}
+
/*Horizontal tree*/
.horizontal_tree-icon {
diff --git a/pandora_server/lib/PandoraFMS/DiscoveryServer.pm b/pandora_server/lib/PandoraFMS/DiscoveryServer.pm
index d331c7986d..2703f65113 100644
--- a/pandora_server/lib/PandoraFMS/DiscoveryServer.pm
+++ b/pandora_server/lib/PandoraFMS/DiscoveryServer.pm
@@ -2058,6 +2058,8 @@ sub PandoraFMS::Recon::Base::report_scanned_agents($;$) {
'index.php?sec=gservers&sec2=godmode/servers/discovery&wiz=tasklist#'
);
+ $notification->{'subtype'} .= safe_input('NOTIF.DISCOVERYTASK.REVIEW');
+
$notification->{'mensaje'} = safe_input(
'Discovery task (host&devices) \''.safe_output($self->{'task_data'}{'name'})
.'\' has been completed. Please review the results.'