From 3e69e3c322f190b275f2a5f1c81618a8f146ce71 Mon Sep 17 00:00:00 2001 From: solocla Date: Tue, 19 May 2026 11:23:26 +0200 Subject: [PATCH] fixed routine valentino --- .../userarea/routines/valentino_compliance.php | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/public/userarea/routines/valentino_compliance.php b/public/userarea/routines/valentino_compliance.php index e3b09ff..5bbc219 100644 --- a/public/userarea/routines/valentino_compliance.php +++ b/public/userarea/routines/valentino_compliance.php @@ -66,7 +66,22 @@ function applyRoutine(&$excelData, $routineData = []) /* * 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 !== '') { $selectedValues[] = $extraText;