fixed routine valentino

This commit is contained in:
2026-05-19 11:23:26 +02:00
parent 0eb4f7a2ad
commit 3e69e3c322
@@ -66,7 +66,22 @@ function applyRoutine(&$excelData, $routineData = [])
/* /*
* Add free text from column AU. * Add free text from column AU.
*/ */
$extraText = trim((string)($row['data'][$extraColumnIndex] ?? '')); $extraText = '';
if (isset($row['data'][$extraColumnIndex])) {
$extraText = trim((string)$row['data'][$extraColumnIndex]);
} elseif (isset($row['data']['AU'])) {
$extraText = trim((string)$row['data']['AU']);
}
error_log(
"Routine field_id 347: row " .
($row['excelrow'] ?? $rowIndex) .
" AU index {$extraColumnIndex} value: " .
print_r($row['data'][$extraColumnIndex] ?? null, true) .
" | AU key value: " .
print_r($row['data']['AU'] ?? null, true)
);
if ($extraText !== '') { if ($extraText !== '') {
$selectedValues[] = $extraText; $selectedValues[] = $extraText;