Skip to content
Snippets Groups Projects
Commit 4469294e authored by Kevin Saliou's avatar Kevin Saliou
Browse files

fix default offset not set when running array_filter

parent 4d941414
Branches
Tags 1.0.7
No related merge requests found
......@@ -86,7 +86,7 @@ $client->api('issue')->all(array(
));
$client->api('issue')->all(array('category_id' => $categoryId));
$client->api('issue')->all(array('tracker_id' => $trackerId));
$client->api('issue')->all(array('tracker_id' => 'closed'));
$client->api('issue')->all(array('status_id' => 'closed'));
$client->api('issue')->all(array('assigned_to_id' => $userId));
$client->api('issue')->all(array('project_id' => 'test'));
$client->api('issue')->all(array(
......
......@@ -88,10 +88,13 @@ abstract class AbstractApi
'limit' => 25,
'offset' => 0,
);
$params = array_filter(array_merge($defaults, $params));
$params = array_filter(
array_merge($defaults, $params),
array($this, 'isNotNull')
);
$ret = array();
$limit = $params['limit'];
$offset = $params['offset'];
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment