| @@ 1015-1022 (lines=8) @@ | ||
| 1012 | $categoriesIdList[$Category->getId()] = true; |
|
| 1013 | } |
|
| 1014 | } |
|
| 1015 | } else { |
|
| 1016 | $message = trans('admin.common.csv_invalid_not_found_target', [ |
|
| 1017 | '%line%' => $line, |
|
| 1018 | '%name%' => $headerByKey['product_category'], |
|
| 1019 | '%target_name%' => $category, |
|
| 1020 | ]); |
|
| 1021 | $this->addErrors($message); |
|
| 1022 | } |
|
| 1023 | } |
|
| 1024 | } |
|
| 1025 | } |
|
| @@ 1065-1072 (lines=8) @@ | ||
| 1062 | $this->entityManager->persist($ProductTags); |
|
| 1063 | } |
|
| 1064 | } |
|
| 1065 | if (!$Tag) { |
|
| 1066 | $message = trans('admin.common.csv_invalid_not_found_target', [ |
|
| 1067 | '%line%' => $data->key() + 1, |
|
| 1068 | '%name%' => $headerByKey['product_tag'], |
|
| 1069 | '%target_name%' => $tag_id, |
|
| 1070 | ]); |
|
| 1071 | $this->addErrors($message); |
|
| 1072 | } |
|
| 1073 | } |
|
| 1074 | } |
|
| 1075 | } |
|