Update html.formmail.class.php

This commit is contained in:
Laurent Destailleur 2022-07-04 15:50:41 +02:00 committed by GitHub
parent 0ce3acf52f
commit 7cd085fd0b
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) {
isset($product->array_options['options_'.$key]) ? $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] : '';
}
}
}