diff --git a/htdocs/admin/taxes.php b/htdocs/admin/taxes.php
index 8a46ef00bfb..78f411605f4 100644
--- a/htdocs/admin/taxes.php
+++ b/htdocs/admin/taxes.php
@@ -110,7 +110,12 @@ if ($action == 'update') {
setEventMessages($langs->trans("Error"), null, 'errors');
}
}
-
+// Set boolean (on/off) constants
+elseif (preg_match('/^(set|del)_?([A-Z_]+)$/', $action, $reg)) {
+ if (!dolibarr_set_const($db, $reg[2], ($reg[1] === 'set' ? '1' : '0'), 'chaine', 0, '', $conf->entity) > 0) {
+ dol_print_error($db);
+ }
+}
/*
@@ -257,7 +262,17 @@ else
print "
\n";
+
+print '
| ' . $langs->trans('Parameter') . ' | ' . $langs->trans('Value') . ' |
|---|---|
| ', $langs->trans($key), ' | ', ajax_constantonoff($key), ' echo ''; echo ' |