From 357827b8446ac704dc3618533bf9c17b877b1418 Mon Sep 17 00:00:00 2001 From: garnier-quentin Date: Thu, 31 Mar 2016 13:44:31 +0200 Subject: [PATCH] + Glpi provider: manage recipient argument for old version (with groupassign: new argument) --- .../providers/Glpi/GlpiProvider.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/www/modules/centreon-open-tickets/providers/Glpi/GlpiProvider.class.php b/www/modules/centreon-open-tickets/providers/Glpi/GlpiProvider.class.php index 5981075a..686bc242 100644 --- a/www/modules/centreon-open-tickets/providers/Glpi/GlpiProvider.class.php +++ b/www/modules/centreon-open-tickets/providers/Glpi/GlpiProvider.class.php @@ -406,7 +406,12 @@ protected function doSubmit($db_storage, $contact, $host_problems, $service_prob if ($result_str == '') { $result_str = null; } + $ticket_arguments[$this->_internal_arg_name[$value['Arg']]] = $result_str; + // Old version of GLPI use 'recipient' depiste groupassign + if ($value['Arg'] == self::ARG_GROUP_ASSIGN) { + $ticket_arguments['recipient'] = $result_str; + } } }