From b08d6b5019141b8b53dace974f7b94698ce7124f Mon Sep 17 00:00:00 2001 From: MDW Date: Tue, 2 Jan 2024 22:10:05 +0100 Subject: [PATCH 1/2] Fix Correct call to dolibarr_set_const for CONTRACT_ALLOW_ONLINESIGN --- htdocs/admin/contract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/admin/contract.php b/htdocs/admin/contract.php index 919a32b4c0e..ba7d073018c 100644 --- a/htdocs/admin/contract.php +++ b/htdocs/admin/contract.php @@ -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)) { From d55ed1cb5d4ecfbcd31210e0f42b7e530d7e14e6 Mon Sep 17 00:00:00 2001 From: MDW Date: Tue, 2 Jan 2024 23:19:30 +0100 Subject: [PATCH 2/2] Fix Order of arguments to dolGetFirstLastname --- htdocs/don/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/don/index.php b/htdocs/don/index.php index c9075791663..02b5799cb5d 100644 --- a/htdocs/don/index.php +++ b/htdocs/don/index.php @@ -231,7 +231,7 @@ if ($resql) { print ''; print $obj->societe; print ($obj->societe && ($obj->lastname || $obj->firstname) ? ' / ' : ''); - print dolGetFirstLastname($obj->lastname, $obj->firstname); + print dolGetFirstLastname($obj->firstname, $obj->lastname); print ''; print '';