Fix VAT refund threshold form handling by using direct POST access instead of GETPOST
This commit is contained in:
parent
eeb7ae6948
commit
d29644738e
@ -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
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user