Merge pull request #24821 from MaximilienR-easya/dev_Fix_html_extrafields

Fix html extrafields
This commit is contained in:
Laurent Destailleur 2023-05-20 11:52:38 +02:00 committed by GitHub
commit 75fe01ad16
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2306,6 +2306,11 @@ class ExtraFields
$value_arr = GETPOST($keysuffix."options_".$key.$keyprefix);
$value_key = $value_arr;
}
} elseif (in_array($key_type, array('html'))) {
if (!GETPOSTISSET($keysuffix."options_".$key.$keyprefix)) {
continue; // Value was not provided, we should not set it.
}
$value_key = dol_htmlcleanlastbr(GETPOST($keysuffix."options_".$key.$keyprefix, 'restricthtml'));
} else {
if (!GETPOSTISSET($keysuffix."options_".$key.$keyprefix)) {
continue; // Value was not provided, we should not set it.