Quick fix

This commit is contained in:
Finley Ghosh 2025-12-08 00:04:40 +11:00
parent 3950cef4c9
commit bb5d48a0a0

View file

@ -371,13 +371,17 @@ document.getElementById('modalConfirmBtn').addEventListener('click', async funct
const formData = new FormData(currentForm);
formData.append('reminder_type', currentReminderType);
// Convert FormData to URLSearchParams for proper form encoding
const params = new URLSearchParams(formData);
try {
const response = await fetch('/go/quotes/send-reminder', {
method: 'POST',
headers: {
'X-Requested-With': 'XMLHttpRequest'
'X-Requested-With': 'XMLHttpRequest',
'Content-Type': 'application/x-www-form-urlencoded'
},
body: formData
body: params
});
if (response.ok) {