|
@@ 172-176 (lines=5) @@
|
| 169 |
|
log_info('規格分類削除開始', [$id]); |
| 170 |
|
|
| 171 |
|
$TargetClassCategory = $this->classCategoryRepository->find($id); |
| 172 |
|
if (!$TargetClassCategory || $TargetClassCategory->getClassName() != $ClassName) { |
| 173 |
|
$this->deleteMessage(); |
| 174 |
|
|
| 175 |
|
return $this->redirectToRoute('admin_product_class_category', ['class_name_id' => $ClassName->getId()]); |
| 176 |
|
} |
| 177 |
|
|
| 178 |
|
try { |
| 179 |
|
$this->classCategoryRepository->delete($TargetClassCategory); |
|
@@ 218-222 (lines=5) @@
|
| 215 |
|
log_info('規格分類表示変更開始', [$id]); |
| 216 |
|
|
| 217 |
|
$TargetClassCategory = $this->classCategoryRepository->find($id); |
| 218 |
|
if (!$TargetClassCategory || $TargetClassCategory->getClassName() != $ClassName) { |
| 219 |
|
$this->deleteMessage(); |
| 220 |
|
|
| 221 |
|
return $this->redirectToRoute('admin_product_class_category', ['class_name_id' => $ClassName->getId()]); |
| 222 |
|
} |
| 223 |
|
|
| 224 |
|
$this->classCategoryRepository->toggleVisibility($TargetClassCategory); |
| 225 |
|
|