Skip to content

Commit

Permalink
Update extrafields.class.php
Browse files Browse the repository at this point in the history
  • Loading branch information
dolibarr95 committed Jan 14, 2022
1 parent e53d9d4 commit 5b3fcc5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions htdocs/core/class/extrafields.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1947,6 +1947,10 @@ public function setOptionalsFromPost($extralabels, &$object, $onlykey = '')
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') {
Expand Down

0 comments on commit 5b3fcc5

Please sign in to comment.