Skip to content

Commit

Permalink
namespace fix, and fields fix in client.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Artur (Seti) Łabudziński committed Sep 30, 2016
1 parent 4e1f6bd commit 51a9e2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public function __construct(ConfigurationInterface $configuration = null)
if ($this->configuration->getMapper())
$this->json_mapper = $this->configuration->getMapper();
else
$this->json_mapper = new \Jira\Mapper();
$this->json_mapper = new \Jira\Api\Mapper();

self::$jMapper = $this->json_mapper;
// create logger
Expand Down Expand Up @@ -208,6 +208,7 @@ public function exec($context, $post_data = null, $custom_request = null, $tries
$url .= '&startAt='.$post_data->startAt;
$url .= '&maxResults='.$post_data->maxResults;
$url .= '&expand='.$post_data->expand;
if (isset($post_data->fields) && !empty($post_data->fields)) $url .= '&fields='.$post_data -> fields;
$post_data = null;
curl_setopt($ch, CURLOPT_POST, false);
curl_setopt($ch, CURLOPT_URL, $url);
Expand Down

0 comments on commit 51a9e2c

Please sign in to comment.