Pass the 'All' group as '' to Discovery apps.

The name of the 'All' group is localized. Pass '' instead of 'All' to
Discovery apps so they can easily handle it.
This commit is contained in:
Ramon Novoa 2023-11-02 10:03:40 +01:00
parent f700007cc0
commit 4b62b14f63
1 changed files with 5 additions and 1 deletions

View File

@ -655,7 +655,11 @@ sub get_recon_macro_value($$$$) {
}
# Name of the group if it exists. Empty otherwise.
elsif ($type eq 'agent_groups') {
my $group_name = get_group_name($dbh, $value);
my $group_name = '';
if ($value > 0) {
$group_name = get_group_name($dbh, $value);
}
if (defined($group_name)) {
$ret = $group_name;
}