Merge pull request #21440 from bb2a/FIX---php-V8-html-form-mail

FIX - php V8 html form mail
This commit is contained in:
Laurent Destailleur 2022-07-04 15:51:02 +02:00 committed by GitHub
commit 1375cae10c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1551,7 +1551,7 @@ class FormMail extends Form
if (!empty($extrafields->attributes[$product->table_element]['label']) && is_array($extrafields->attributes[$product->table_element]['label']) && count($extrafields->attributes[$product->table_element]['label']) > 0) {
foreach ($extrafields->attributes[$product->table_element]['label'] as $key => $label) {
$substit_line['__PRODUCT_EXTRAFIELD_'.strtoupper($key).'__'] = $product->array_options['options_'.$key];
$substit_line['__PRODUCT_EXTRAFIELD_'.strtoupper($key).'__'] = isset($product->array_options['options_'.$key]) ? $product->array_options['options_'.$key] : '';
}
}
}