2
0
forked from Wavyzz/dolibarr
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
$headerlinefields = array();
$contentlinevalues = array();
$headerlinefields = array(); // Array of fields (label to show)
$contentlinevalues = array(); // Array of example values
$i = 0;
foreach ($fieldstarget as $code => $label) {
$withoutstar = preg_replace('/\*/', '', $fieldstarget[$code]);
$headerlinefields[] = $langs->transnoentities($withoutstar).($withoutstar != $fieldstarget[$code] ? '*' : '').' ('.$code.')';
$contentlinevalues[] = $valuestarget[$code];
$contentlinevalues[] = (isset($valuestarget[$code]) ? $valuestarget[$code] : '');
}
//var_dump($headerlinefields);
//var_dump($contentlinevalues);