Add debugging to action handling

- Add debug logging to track received actions
- Debug action processing flow
- Identify why reset_template action is not being processed
This commit is contained in:
Frank Cools 2025-10-08 01:17:55 +02:00
parent 9f634d2998
commit 39ddbaac49

View File

@ -36,6 +36,7 @@ $form = new Form($db);
// Handle form submission // Handle form submission
$action = GETPOST('action', 'alpha'); $action = GETPOST('action', 'alpha');
error_log("DeclarationTVA: Action received: " . $action);
if ($action == 'update_mappings') { if ($action == 'update_mappings') {
$ca3_definitions = $config->getCA3LineDefinitions(); $ca3_definitions = $config->getCA3LineDefinitions();
$updated_count = 0; $updated_count = 0;