Skip to content

Commit 2ced813

Browse files
committed
Adding date parameters to the options passed in the url of the resource.
If date option is passed in the webeservice call with the value of 1 enables filtering and ordering on dates fields.
1 parent b2b32db commit 2ced813

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PrestashopWebServiceLibrary.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ public function get($options)
265265
if (isset($options['id']))
266266
$url .= '/'.$options['id'];
267267

268-
$params = array('filter', 'display', 'sort', 'limit', 'id_shop', 'id_group_shop');
268+
$params = array('filter', 'display', 'sort', 'limit', 'id_shop', 'id_group_shop','date');
269269
foreach ($params as $p)
270270
foreach ($options as $k => $o)
271271
if (strpos($k, $p) !== false)

0 commit comments

Comments
 (0)