This commit is contained in:
Laurent Destailleur 2021-07-31 16:22:50 +02:00
parent 04911bde25
commit 9811569b2b

View File

@ -102,13 +102,13 @@ if ($attachment) {
// List of targets fields // List of targets fields
$headerlinefields = array(); $headerlinefields = array(); // Array of fields (label to show)
$contentlinevalues = array(); $contentlinevalues = array(); // Array of example values
$i = 0; $i = 0;
foreach ($fieldstarget as $code => $label) { foreach ($fieldstarget as $code => $label) {
$withoutstar = preg_replace('/\*/', '', $fieldstarget[$code]); $withoutstar = preg_replace('/\*/', '', $fieldstarget[$code]);
$headerlinefields[] = $langs->transnoentities($withoutstar).($withoutstar != $fieldstarget[$code] ? '*' : '').' ('.$code.')'; $headerlinefields[] = $langs->transnoentities($withoutstar).($withoutstar != $fieldstarget[$code] ? '*' : '').' ('.$code.')';
$contentlinevalues[] = $valuestarget[$code]; $contentlinevalues[] = (isset($valuestarget[$code]) ? $valuestarget[$code] : '');
} }
//var_dump($headerlinefields); //var_dump($headerlinefields);
//var_dump($contentlinevalues); //var_dump($contentlinevalues);