From 45b6941344ea72d4dd3c34a63a5a0e685d74cdaa Mon Sep 17 00:00:00 2001 From: Brice Werry Date: Mon, 23 Dec 2024 10:42:11 +0100 Subject: [PATCH] FIX: SUPPLIER_PROPOSAL_FREE_TEXT get HTML tags removed --- htdocs/admin/supplier_proposal.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/htdocs/admin/supplier_proposal.php b/htdocs/admin/supplier_proposal.php index 02fc5bdaccb..0d49aabbef6 100644 --- a/htdocs/admin/supplier_proposal.php +++ b/htdocs/admin/supplier_proposal.php @@ -195,8 +195,11 @@ if ($action == 'set') { dolibarr_set_const($db, "SUPPLIER_PROPOSAL_ADDON", $value, 'chaine', 0, '', $conf->entity); } elseif (preg_match('/set_(.*)/', $action, $reg)) { $code = $reg[1]; + if ($code == "SUPPLIER_PROPOSAL_FREE_TEXT") { $value = (GETPOST($code,'restricthtml') ? GETPOST($code,'restricthtml') : 1); - + } else { + $value = (GETPOST($code) ? GETPOST($code) : 1); + } $res = dolibarr_set_const($db, $code, $value, 'chaine', 0, '', $conf->entity); if (!($res > 0)) { $error++;