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:
Ramon Novoa 2011-06-08 15:08:52 +00:00
parent ffd88206e6
commit cd9c926435
2 changed files with 10 additions and 3 deletions

View File

@ -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>
* lib/PandoraFMS/DB.pm: Added a function to get the name of an alert

View File

@ -2435,12 +2435,15 @@ sub pandora_get_module_tags ($$$) {
# No tags found
return '' if ($#tags < 0);
my $tag_string = '|';
my $tag_string = '';
foreach my $tag (@tags) {
$tag_string .= $tag->{'name'} . '|';
$tag_string .= $tag->{'name'} . ',';
}
# Remove the trailing ','
chop ($tag_string);
return $tag_string;
}