Update extrafields.class.php

fix #19739
This commit is contained in:
dolibarr95 2022-01-14 08:52:04 +01:00 committed by GitHub
parent cb45f79ab0
commit e53d9d4320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1947,10 +1947,6 @@ class ExtraFields
if (!empty($onlykey) && $onlykey != '@GETPOSTISSET' && $key != $onlykey) {
continue;
}
if (!empty($onlykey) && $onlykey == '@GETPOSTISSET' && !GETPOSTISSET('options_'.$key) && $this->attributes[$object->table_element]['type'][$key] != 'boolean') {
//when unticking boolean field, it's not set in POST
continue;
}
$key_type = $this->attributes[$object->table_element]['type'][$key];
if ($key_type == 'separate') {