From 35447154aa97f3704a9796ae262ba87b99f86389 Mon Sep 17 00:00:00 2001 From: Daniel Cebrian Date: Thu, 16 Nov 2023 16:34:06 +0100 Subject: [PATCH] #12473 fixed status and group in export csv --- .../include/lib/ClusterViewer/ClusterManager.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pandora_console/include/lib/ClusterViewer/ClusterManager.php b/pandora_console/include/lib/ClusterViewer/ClusterManager.php index 7ee9a96ba1..4f47ca0d42 100644 --- a/pandora_console/include/lib/ClusterViewer/ClusterManager.php +++ b/pandora_console/include/lib/ClusterViewer/ClusterManager.php @@ -620,9 +620,16 @@ class ClusterManager if (empty($tmp->group) === true) { $tmp->group = __('Not set'); } else { + // Html div part for csv export. $tmp->group = ui_print_group_icon( $tmp->group, true + ).html_print_div( + [ + 'content' => groups_get_name($tmp->group), + 'class' => 'invisible', + ], + true ); } @@ -636,9 +643,16 @@ class ClusterManager } // Status. + // Html div part for csv export. $tmp->known_status = ui_print_module_status( $tmp->known_status, true + ).html_print_div( + [ + 'content' => $tmp->known_status, + 'class' => 'invisible', + ], + true ); // Options. View.