From a1def873fc67c9f38c97db57807f39236d772999 Mon Sep 17 00:00:00 2001 From: m-lopez-f Date: Fri, 3 Jun 2016 10:12:06 +0200 Subject: [PATCH] Fixed problems with created Tickets with pandora. Tiquet: #3690 (cherry picked from commit 55e1bc6583c9c775560dadfa3783e4d9458f77bf) --- pandora_server/lib/PandoraFMS/Core.pm | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index fd1508ca56..6f4b973b48 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -5034,7 +5034,7 @@ sub pandora_edit_custom_graph ($$$$$$$$$$$) { } sub pandora_create_integria_ticket ($$$$$$$$$$$) { - my ($pa_config,$api_path,$api_pass,$integria_user,$user_pass,$ticket_name,$group_id,$ticket_priority,$ticket_email,$ticket_owner,$ticket_description,) = @_; + my ($pa_config,$api_path,$api_pass,$integria_user,$user_pass,$ticket_name,$group_id,$ticket_priority,$ticket_email,$ticket_owner,$ticket_description) = @_; my $data_ticket; my $call_api; @@ -5061,18 +5061,30 @@ sub pandora_create_integria_ticket ($$$$$$$$$$$) { $ticket_owner = "admin"; } + #~ $data_ticket = $ticket_name . + #~ "|;|" . $group_id . + #~ "|;|" . $ticket_priority . + #~ "|;|" . $ticket_description . + #~ "|;|" . #Id inventory + #~ "|;|" . #Id incident type + #~ "|;|" . $ticket_email . + #~ "|;|" . $ticket_owner . + #~ "|;|" . #Father ticket id + #~ "|;|" . #Status + #~ "|;|" . #Extra info + #~ "|;|"; #Resolution $data_ticket = $ticket_name . "|;|" . $group_id . "|;|" . $ticket_priority . "|;|" . $ticket_description . - "|;|" . #Id inventory - "|;|" . #Id incident type + "|;|" . + "|;|" . "|;|" . $ticket_email . "|;|" . $ticket_owner . - "|;|" . #Father ticket id - "|;|" . #Status - "|;|" . #Extra info - "|;|"; #Resolution + "|;|" . + "|;|" . '1' . + "|;|" . + "|;|"; $call_api = $api_path . '?' . 'user=' . $integria_user . '&' .