diff --git a/pandora_server/lib/PandoraFMS/Core.pm b/pandora_server/lib/PandoraFMS/Core.pm index 8d44bf4c98..f07894445b 100644 --- a/pandora_server/lib/PandoraFMS/Core.pm +++ b/pandora_server/lib/PandoraFMS/Core.pm @@ -5029,7 +5029,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; @@ -5056,18 +5056,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 . '&' .