From 48041ad36bcea66d6cd0e5898af3fa86249214eb Mon Sep 17 00:00:00 2001 From: Hans <70293671+Dolisupport@users.noreply.github.com> Date: Wed, 17 Jan 2024 13:50:10 +0100 Subject: [PATCH] Update actions_setmoduleoptions.inc.php [NEW] Makes it possible to update html text fields besides integer and alpha fields for a custom build module. --- htdocs/core/actions_setmoduleoptions.inc.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/core/actions_setmoduleoptions.inc.php b/htdocs/core/actions_setmoduleoptions.inc.php index 90bd55e6c2f..854f22bd197 100644 --- a/htdocs/core/actions_setmoduleoptions.inc.php +++ b/htdocs/core/actions_setmoduleoptions.inc.php @@ -47,6 +47,8 @@ if ($action == 'update' && is_array($arrayofparameters) && !empty($user->admin)) } else { $val_const = GETPOST($key, 'int'); } + } else if ($val['type'] == 'html') { + $val_const = GETPOST($key, 'restricthtml'); } else { $val_const = GETPOST($key, 'alpha'); }