fix knowledgerecord

This commit is contained in:
Frédéric France 2024-03-16 13:20:36 +01:00
parent 582424c607
commit f61c97bd9a

View File

@ -76,11 +76,11 @@ $myTmpObjects['knowledgemanagement'] = array('label' => 'KnowledgeManagement', '
include DOL_DOCUMENT_ROOT.'/core/actions_setmoduleoptions.inc.php';
if ($action == 'updateMask') {
$maskconst = GETPOST('maskconst', 'aZ09');
$maskorder = GETPOST('maskorder', 'alpha');
$maskconst = GETPOST('maskconst', 'alpha');
$maskdata = GETPOST('maskKnowledgeRecord', 'alpha');
if ($maskconst && preg_match('/_MASK$/', $maskconst)) {
$res = dolibarr_set_const($db, $maskconst, $maskorder, 'chaine', 0, '', $conf->entity);
$res = dolibarr_set_const($db, $maskconst, $maskdata, 'chaine', 0, '', $conf->entity);
if (!($res > 0)) {
$error++;
}