Open msiddiq1400 opened 1 month ago
We've tested that ourselves but can't reproduce the issue. Our requests:
The patched customer address is still there
This is the post call, for a user with no address (no delivery or billing, saveAddressItems is called 3 times, no deleted keys array $item->getAddressItemsDeleted()->keys()->toArray()
returns [] for all 3 calls in this single request)
The patch request is removing it, the request is patch
According to your screenshots, it seems you've overwritten some code with your own implentation. Maybe the problem is located there?
I have extended the saveItemAddress function in the customermanager, even If I remove it the behavior does not change
can you tell me the versions you are using for all packages for aimeos ?
Like said, we are not able to reproduce the behavior. Can you please post vanilla JS code which we can use to see the behavior in our environment too?
I don't understand, do you want me to share the php files for the extended code (override files) ? some specific extended managers or what ?
No, we need the Javascript code which reproduces the problem
where can i get the file, is it from the source in browser ?
I triggered these apis from postman, and getting the issue
I am facing an issue right now related to customer addresses, the patch request is deleting the addresses on update. previously I used 2024.04.01 for all packages but was facing context and auth issues for supplier users (admin group), yesterday the 2024.07.x-dev was live so updated all packages to 2024.07.1 and for aimeos/aimeos-laravel used the 2024.07.x-dev, now addresses are removed on patch request
this POST request is creating the address https://local.droppe.com/jsonapi/default/customer?id=4058&related=address Body:
{"data":[{"attributes":{"customer.address.address1":"address 1","customer.address.postal":"postal 1","customer.address.city":"city1","customer.address.countryid":"fi","customer.address.addressdetails":"","customer.address.deliverynotes":"notes1","customer.address.company":"","customer.address.vatid":"","customer.address.email":"","customer.address.telephone":"+3582323223","customer.address.position":0}}]}
when i try to update the same address returned from the post request via PATCH it just removes it https://local.droppe.com/jsonapi/default/customer?id=4058&related=address&relatedid=6124 Body:
{"data":{"attributes":{"customer.address.address1":"address 11","customer.address.postal":"postal 11","customer.address.city":"city 11","customer.address.countryid":"fi","customer.address.addressdetails":"","customer.address.deliverynotes":"notes11","customer.address.telephone":"+35823232323"}}}