2011-06-08 Ramon Novoa <rnovoa@artica.es>
* lib/PandoraFMS/Core.pm: Use commas to separate tags. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4421 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
5d45306cb7
commit
c220594014
|
@ -1,3 +1,7 @@
|
||||||
|
2011-06-08 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
|
* lib/PandoraFMS/Core.pm: Use commas to separate tags.
|
||||||
|
|
||||||
2011-06-08 Ramon Novoa <rnovoa@artica.es>
|
2011-06-08 Ramon Novoa <rnovoa@artica.es>
|
||||||
|
|
||||||
* lib/PandoraFMS/DB.pm: Added a function to get the name of an alert
|
* lib/PandoraFMS/DB.pm: Added a function to get the name of an alert
|
||||||
|
|
|
@ -2436,11 +2436,14 @@ sub pandora_get_module_tags ($$$) {
|
||||||
# No tags found
|
# No tags found
|
||||||
return '' if ($#tags < 0);
|
return '' if ($#tags < 0);
|
||||||
|
|
||||||
my $tag_string = '|';
|
my $tag_string = '';
|
||||||
foreach my $tag (@tags) {
|
foreach my $tag (@tags) {
|
||||||
$tag_string .= $tag->{'name'} . '|';
|
$tag_string .= $tag->{'name'} . ',';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Remove the trailing ','
|
||||||
|
chop ($tag_string);
|
||||||
|
|
||||||
return $tag_string;
|
return $tag_string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue