| @@ 128-132 (lines=5) @@ | ||
| 125 | if (!empty($formFile)) { |
|
| 126 | log_info('商品CSV登録開始'); |
|
| 127 | $data = $this->getImportData($formFile); |
|
| 128 | if ($data === false) { |
|
| 129 | $this->addErrors(trans('csvimport.text.error.format_invalid')); |
|
| 130 | ||
| 131 | return $this->renderWithError($form, $headers, false); |
|
| 132 | } |
|
| 133 | $getId = function ($item) { |
|
| 134 | return $item['id']; |
|
| 135 | }; |
|
| @@ 494-498 (lines=5) @@ | ||
| 491 | if (!empty($formFile)) { |
|
| 492 | log_info('カテゴリCSV登録開始'); |
|
| 493 | $data = $this->getImportData($formFile); |
|
| 494 | if ($data === false) { |
|
| 495 | $this->addErrors(trans('csvimport.text.error.format_invalid')); |
|
| 496 | ||
| 497 | return $this->renderWithError($form, $headers, false); |
|
| 498 | } |
|
| 499 | ||
| 500 | /** |
|
| 501 | * Checking the header for the data column flexible. |
|