2
0
forked from Wavyzz/dolibarr

Fix Correct call to dolibarr_set_const for CONTRACT_ALLOW_ONLINESIGN

This commit is contained in:
MDW
2024-01-02 22:10:05 +01:00
parent b9591bb314
commit b08d6b5019

View File

@@ -157,7 +157,7 @@ if ($action == 'updateMask') {
setEventMessages($langs->trans("Error"), null, 'errors');
}
} elseif ($action == "allowonlinesign") {
if (!dolibarr_set_const($db, "CONTRACT_ALLOW_ONLINESIGN", $value, 0, 'int', $conf->entity)) {
if (!dolibarr_set_const($db, "CONTRACT_ALLOW_ONLINESIGN", $value, 'int', 0, '', $conf->entity)) {
$error++;
}
} elseif (preg_match('/set_(.*)/', $action, $reg)) {