From e84ab7c3f6c701878d9f5c949c0f732243fc1e7b Mon Sep 17 00:00:00 2001 From: Sebastian Mendel Date: Mon, 28 Nov 2022 14:33:58 +0100 Subject: [PATCH] Fix #63: pass field list as array instead of string when using POST istead of GET for jira/search API endpoint --- .../TimeTrackerBundle/Controller/CrudController.php | 2 +- src/Netresearch/TimeTrackerBundle/Helper/JiraOAuthApi.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Netresearch/TimeTrackerBundle/Controller/CrudController.php b/src/Netresearch/TimeTrackerBundle/Controller/CrudController.php index 0ae74506..8371da96 100644 --- a/src/Netresearch/TimeTrackerBundle/Controller/CrudController.php +++ b/src/Netresearch/TimeTrackerBundle/Controller/CrudController.php @@ -736,7 +736,7 @@ protected function handleInternalJiraTicketSystem($entry, $oldEntry) $project->getInternalJiraProjectKey(), $strTicket ), - 'key,summary', + ['key', 'summary'], 1 ); diff --git a/src/Netresearch/TimeTrackerBundle/Helper/JiraOAuthApi.php b/src/Netresearch/TimeTrackerBundle/Helper/JiraOAuthApi.php index 21ef4e71..1b29007b 100644 --- a/src/Netresearch/TimeTrackerBundle/Helper/JiraOAuthApi.php +++ b/src/Netresearch/TimeTrackerBundle/Helper/JiraOAuthApi.php @@ -417,7 +417,7 @@ public function createTicket(Entry $entry) /** * @param string $jql - * @param string $fields + * @param array $fields * @param int $limit * @return \stdClass * @throws JiraApiException @@ -425,7 +425,7 @@ public function createTicket(Entry $entry) */ public function searchTicket($jql, $fields, $limit = 1) { - //we use POST to support very large queries + // we use POST to support very large queries return $this->post( "search/", [