| @@ 152-156 (lines=5) @@ | ||
| 149 | if (!empty($formFile)) { |
|
| 150 | log_info('商品CSV登録開始'); |
|
| 151 | $data = $this->getImportData($formFile); |
|
| 152 | if ($data === false) { |
|
| 153 | $this->addErrors(trans('admin.common.csv_invalid_format')); |
|
| 154 | ||
| 155 | return $this->renderWithError($form, $headers, false); |
|
| 156 | } |
|
| 157 | $getId = function ($item) { |
|
| 158 | return $item['id']; |
|
| 159 | }; |
|
| @@ 556-560 (lines=5) @@ | ||
| 553 | if (!empty($formFile)) { |
|
| 554 | log_info('カテゴリCSV登録開始'); |
|
| 555 | $data = $this->getImportData($formFile); |
|
| 556 | if ($data === false) { |
|
| 557 | $this->addErrors(trans('admin.common.csv_invalid_format')); |
|
| 558 | ||
| 559 | return $this->renderWithError($form, $headers, false); |
|
| 560 | } |
|
| 561 | ||
| 562 | $getId = function ($item) { |
|
| 563 | return $item['id']; |
|