From e53d9d4320599db356887235440b168e427ff3d0 Mon Sep 17 00:00:00 2001 From: dolibarr95 <24292300+dolibarr95@users.noreply.github.com> Date: Fri, 14 Jan 2022 08:52:04 +0100 Subject: [PATCH] Update extrafields.class.php fix #19739 --- htdocs/core/class/extrafields.class.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index 184b97a3c98..0e23863f1a9 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -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') {