Merge pull request #18833 from marc-dll/12.0_FIX_product_extrafields_update

FIX: products/services card: hidden extrafields were overridden
This commit is contained in:
Laurent Destailleur 2021-09-28 12:13:08 +02:00 committed by GitHub
commit c3d539abff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -487,7 +487,7 @@ if (empty($reshook))
if ($accountancy_code_buy_export <= 0) { $object->accountancy_code_buy_export = ''; } else { $object->accountancy_code_buy_export = $accountancy_code_buy_export; }
// Fill array 'array_options' with data from add form
$ret = $extrafields->setOptionalsFromPost(null, $object);
$ret = $extrafields->setOptionalsFromPost(null, $object, '@GETPOSTISSET');
if ($ret < 0) $error++;
if (!$error && $object->check())