fixed routine valentino
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user