Describe the bug
When trying to delete a customer contact you get an error message that the Method is not allowed.
The reason is, Deleting a contact require POST request, but a GET request in being sent.
To Reproduce
Steps to reproduce the behavior:
- Go to any customer profile
- Click on 'Add Contact'
- Provide contact name and click 'Save'
- Now click 'Edit' on the contact you just added
- Finally click 'Delete' to delete the contact
Expected behavior
The expected behavior is the customer contact gets deleted
Screenshots

Additional context
The issue is in the file:-
|
get_request_api('/manage/customers/' + customer_id + '/contacts/' + contact_id + '/delete') |
The code is sending a GET request, and this has been deprecated.
It should be changed to the following:-
post_request_api('/manage/customers/' + customer_id + '/contacts/' + contact_id + '/delete')
Describe the bug
When trying to delete a customer contact you get an error message that the Method is not allowed.
The reason is, Deleting a contact require POST request, but a GET request in being sent.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The expected behavior is the customer contact gets deleted
Screenshots

Additional context
The issue is in the file:-
iris-web/source/app/static/assets/js/iris/view.customers.js
Line 36 in 0f702c0
The code is sending a GET request, and this has been deprecated.
It should be changed to the following:-