From d29644738e1818330f8aca3cb39786418831dada Mon Sep 17 00:00:00 2001 From: Frank Cools Date: Wed, 8 Oct 2025 16:37:08 +0200 Subject: [PATCH] Fix VAT refund threshold form handling by using direct POST access instead of GETPOST --- admin/setup_mvp.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/setup_mvp.php b/admin/setup_mvp.php index 292631b..17d56d5 100644 --- a/admin/setup_mvp.php +++ b/admin/setup_mvp.php @@ -94,8 +94,8 @@ if ($action == 'update_vat_refund_threshold') { error_log("POST data: " . print_r($_POST, true)); $threshold_config = array( - 'refund_threshold' => GETPOST('vat_refund_threshold', 'float'), - 'refund_threshold_enabled' => GETPOST('vat_refund_threshold_enabled', 'int') + 'refund_threshold' => (float)$_POST['vat_refund_threshold'], + 'refund_threshold_enabled' => (int)$_POST['vat_refund_threshold_enabled'] ); // Debug: Log the received values