From 9221d4207c1159c9587e20db9e94d2d6a7ddf536 Mon Sep 17 00:00:00 2001 From: Anatoliy Melnikov <5785276@gmail.com> Date: Thu, 13 Jun 2024 23:52:45 +0300 Subject: [PATCH] Fix: JIRA config array keys using --- .../Registrar/JIRA/IssueServiceArrayConfigPreparer.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Service/Registrar/JIRA/IssueServiceArrayConfigPreparer.php b/src/Service/Registrar/JIRA/IssueServiceArrayConfigPreparer.php index 195aeb6..8a3f549 100644 --- a/src/Service/Registrar/JIRA/IssueServiceArrayConfigPreparer.php +++ b/src/Service/Registrar/JIRA/IssueServiceArrayConfigPreparer.php @@ -29,21 +29,20 @@ public function prepare(array $config): array $this->addLogOptions($serviceConfig, $config); $this->addProxyOptions($serviceConfig, $config); - if ($config['serviceDeskId']) { + if (isset($config['serviceDeskId'])) { $serviceConfig['serviceDeskId'] = $config['serviceDeskId']; } return $serviceConfig; } - /** * @param array $serviceConfig * @param array $config */ private function addAuthOptions(array &$serviceConfig, array $config): void { - if ($serviceConfig['tokenBasedAuth']) { + if ($serviceConfig['useTokenBasedAuth']) { $serviceConfig['jiraUser'] = $config['jiraUser']; $serviceConfig['jiraPassword'] = $config['jiraPassword']; } else {