From bb5d48a0a07db295c75a0c36f0d28c30883d2ff9 Mon Sep 17 00:00:00 2001 From: Finley Ghosh Date: Mon, 8 Dec 2025 00:04:40 +1100 Subject: [PATCH] Quick fix --- go/templates/quotes/index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/go/templates/quotes/index.html b/go/templates/quotes/index.html index c3e78434..3b2a8fcf 100644 --- a/go/templates/quotes/index.html +++ b/go/templates/quotes/index.html @@ -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) {