Selaa lähdekoodia

Feltoltott excel fajl termek import click validacios uzenet worksheet name error index display fix

master
Dukai Károly 3 vuotta sitten
vanhempi
commit
168b09ea48
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. +2
    -1
      modules/custom/arlista/src/Factory/SpreadSheetFactory.php

+ 2
- 1
modules/custom/arlista/src/Factory/SpreadSheetFactory.php Näytä tiedosto

$cleanSheetSettingName = strtolower(preg_replace("/[^A-Za-z0-9 ]/", '', $sheetSetting->getName())); $cleanSheetSettingName = strtolower(preg_replace("/[^A-Za-z0-9 ]/", '', $sheetSetting->getName()));


if (strcmp($cleanWorkSheetTitle, $cleanSheetSettingName) != 0) { if (strcmp($cleanWorkSheetTitle, $cleanSheetSettingName) != 0) {
$result['extracted'][$sheetSetting->getIndex()]['validation'] = ['A munkalap neve nem megfelő. Ellenőrizze a konfigurációkat! Munkalap száma: ' . ($sheetSetting->getIndex() + 1)];
$workSheetIndex = $sheetSetting->getIndex() + 1;
$result['extracted'][$sheetSetting->getIndex()]['validation'] = ['A munkalap neve nem megfelő. Ellenőrizze a konfigurációkat! Munkalap száma: ' . $workSheetIndex];


return $result; return $result;
} }

Loading…
Peruuta
Tallenna