Update extrafields.class.php

This commit is contained in:
dolibarr95 2022-01-14 10:10:10 +01:00 committed by GitHub
parent e53d9d4320
commit 5b3fcc5e43
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1947,6 +1947,10 @@ class ExtraFields
if (!empty($onlykey) && $onlykey != '@GETPOSTISSET' && $key != $onlykey) {
continue;
}
if (!empty($onlykey) && $onlykey == '@GETPOSTISSET' && !GETPOSTISSET('options_'.$key) && (! in_array($this->attributes[$object->table_element]['type'][$key], array('boolean', 'chkbxlst')))) {
continue;
}
$key_type = $this->attributes[$object->table_element]['type'][$key];
if ($key_type == 'separate') {