Skip to content

Commit 2637a02

Browse files
authored
Merge pull request #22 from ingrammicro/v15-development
Fixed issue when configuration file contains an array of products
2 parents d35b0d9 + c77f3e6 commit 2637a02

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/FulfillmentAutomation.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,16 +240,17 @@ public function listRequests(array $filters = null)
240240
$query = '';
241241

242242
if ($this->config->products) {
243-
$filters['product_id'] = $this->config->products;
243+
$filters['asset.product.id__in'] = implode(",", $this->config->products);
244244
}
245245

246246
if ($filters) {
247247
$query = http_build_query($filters);
248248

249249
// process case when value for filter is array
250250
$query = '?' . preg_replace('/%5B[0-9]+%5D/simU', '', $query);
251-
}
252251

252+
$query = urldecode($query);
253+
}
253254
$body = $this->sendRequest('GET', '/requests' . $query);
254255

255256
/** @var Request[] $models */

0 commit comments

Comments
 (0)