From 8533c826d037b44c2eeb3a66257134b182a4ea24 Mon Sep 17 00:00:00 2001 From: DevSoftTech Server Date: Thu, 30 Apr 2026 01:56:40 +0530 Subject: [PATCH] Use GET for invoice draft DataTable ajax to avoid CSRF empty results --- app/Views/medical/invoice_med_draft.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Views/medical/invoice_med_draft.php b/app/Views/medical/invoice_med_draft.php index 1a8bcc3..e5f45cb 100644 --- a/app/Views/medical/invoice_med_draft.php +++ b/app/Views/medical/invoice_med_draft.php @@ -90,7 +90,7 @@ pageLength: 25, ajax: { url: '', - type: 'POST', + type: 'GET', data: function (data) { var statusInput = filterForm.find('input[name="status"]'); var caseInput = filterForm.find('input[name="case_id"]'); @@ -103,9 +103,6 @@ data.to = toInput.length ? (toInput.val() || '') : ''; data.q = qInput.length ? (qInput.val() || '') : ''; data.case_id = caseInput.length ? (caseInput.val() || defaultCaseId) : defaultCaseId; - - data[''] = ''; - }, error: function () { jQuery(tableId + ' tbody').html('No data found in server.');