RussellJuma / PySuiteCRM

MIT License
10 stars 4 forks source link

Get not working when using multiple filters #11

Open jazzchia opened 1 year ago

jazzchia commented 1 year ago

Using the following example provided in the 'Get' function, the URL constructed for the query is not correct.

result = suitecrm.Contacts.get(first_name='Russell', last_name='Juma')

Expected by SuiteCRM: /Api/V8/module/Contacts?filter[first_name][eq]=Russell&filter[last_name][eq]=Juma

Actual: /Api/V8/module/Contacts?filter%5Bfirst_name%5D%5Beq%5D=Russelland&%5Blast_name%5D%5Beq%5D=Juma Or /Api/V8/module/Contacts?filter[first_name][eq]=Russelland&[last_name][eq]=Juma