Skip to content

Commit 51a9e2c

Browse files
author
Artur (Seti) Łabudziński
committed
namespace fix, and fields fix in client.php
1 parent 4e1f6bd commit 51a9e2c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Client.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ public function __construct(ConfigurationInterface $configuration = null)
7272
if ($this->configuration->getMapper())
7373
$this->json_mapper = $this->configuration->getMapper();
7474
else
75-
$this->json_mapper = new \Jira\Mapper();
75+
$this->json_mapper = new \Jira\Api\Mapper();
7676

7777
self::$jMapper = $this->json_mapper;
7878
// create logger
@@ -208,6 +208,7 @@ public function exec($context, $post_data = null, $custom_request = null, $tries
208208
$url .= '&startAt='.$post_data->startAt;
209209
$url .= '&maxResults='.$post_data->maxResults;
210210
$url .= '&expand='.$post_data->expand;
211+
if (isset($post_data->fields) && !empty($post_data->fields)) $url .= '&fields='.$post_data -> fields;
211212
$post_data = null;
212213
curl_setopt($ch, CURLOPT_POST, false);
213214
curl_setopt($ch, CURLOPT_URL, $url);

0 commit comments

Comments
 (0)