Fix VAT refund threshold form handling by using direct POST access instead of GETPOST

This commit is contained in:
Frank Cools 2025-10-08 16:37:08 +02:00
parent eeb7ae6948
commit d29644738e

View File

@ -94,8 +94,8 @@ if ($action == 'update_vat_refund_threshold') {
error_log("POST data: " . print_r($_POST, true)); error_log("POST data: " . print_r($_POST, true));
$threshold_config = array( $threshold_config = array(
'refund_threshold' => GETPOST('vat_refund_threshold', 'float'), 'refund_threshold' => (float)$_POST['vat_refund_threshold'],
'refund_threshold_enabled' => GETPOST('vat_refund_threshold_enabled', 'int') 'refund_threshold_enabled' => (int)$_POST['vat_refund_threshold_enabled']
); );
// Debug: Log the received values // Debug: Log the received values