Quick fix
This commit is contained in:
parent
3950cef4c9
commit
bb5d48a0a0
|
|
@ -371,13 +371,17 @@ document.getElementById('modalConfirmBtn').addEventListener('click', async funct
|
||||||
const formData = new FormData(currentForm);
|
const formData = new FormData(currentForm);
|
||||||
formData.append('reminder_type', currentReminderType);
|
formData.append('reminder_type', currentReminderType);
|
||||||
|
|
||||||
|
// Convert FormData to URLSearchParams for proper form encoding
|
||||||
|
const params = new URLSearchParams(formData);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch('/go/quotes/send-reminder', {
|
const response = await fetch('/go/quotes/send-reminder', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'X-Requested-With': 'XMLHttpRequest'
|
'X-Requested-With': 'XMLHttpRequest',
|
||||||
|
'Content-Type': 'application/x-www-form-urlencoded'
|
||||||
},
|
},
|
||||||
body: formData
|
body: params
|
||||||
});
|
});
|
||||||
|
|
||||||
if (response.ok) {
|
if (response.ok) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue