Filters are not applied
Dictionary<string, string> dtn = new Dictionary<string, string>();
dtn.Add("name", "Test");
List<product> products = _pf.GetByFilter(dtn, null, null);
The above snippet returns all products, but should only return those names 'Test'. The response from presta indicates that the following URI was called:
https://XXXX/api/products?display=full&filter%255Bname%255D=Test&date=1&ws_key=XXXXXX
The problem seems to be the encoding of the square brackets. Testing with mailman, the above query does indeed return all products. According to w3schools the encoding of [ as %255B is incorrect, and should be simply %5B.
It doesn't seem like anyone else is having this issue, so I suspect it being something on my end. Input much appreciated.
Hi, Please look at my answer on this thread : https://github.com/Bukimedia/PrestaSharp/issues/210
I hope it will help you.
Hi,
Thanks for the attencion.
I created a new field in the client table with the name "erpcode" and I intend to update this field through webservice. It's possible? I'm working on a solution to solve this situation, but if you have a solution for me that would be great.
Best Regards, Fábio Gomes
De: DorianCaup [mailto:[email protected]] Enviada: 14 de junho de 2017 11:08 Para: Bukimedia/PrestaSharp [email protected] Cc: Subscribed [email protected] Assunto: Re: [Bukimedia/PrestaSharp] Filters are not applied (#263)
Hi, Please look at my answer on this thread : #210https://github.com/Bukimedia/PrestaSharp/issues/210
I hope it will help you.
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHubhttps://github.com/Bukimedia/PrestaSharp/issues/263#issuecomment-308386582, or mute the threadhttps://github.com/notifications/unsubscribe-auth/Ab33G0DeXVNqu4_Xq2ev8vdS5oWF6kuEks5sD7D8gaJpZM4Nk3Vh.