This commit is contained in:
shibafu
2020-05-23 15:56:51 +09:00
parent 5af55fa6b4
commit cc0e0271b8
2 changed files with 16 additions and 1 deletions

View File

@@ -59,7 +59,7 @@ class CheckinCsvImporter
$imported = 0;
foreach ($csv->getRecords() as $offset => $record) {
$line = $offset + 1;
if (self::IMPORT_LIMIT < $alreadyImportedCount + $imported) {
if (self::IMPORT_LIMIT <= $alreadyImportedCount + $imported) {
$limit = self::IMPORT_LIMIT;
$errors[] = "{$line} 行 : インポート機能で取り込めるデータは{$limit}件までに制限されています。これ以上取り込みできません。";
throw new CsvImportException(...$errors);