| @@ 393-397 (lines=5) @@ | ||
| 390 | // 新規登録 |
|
| 391 | log_info('商品規格新規登録開始', array($id)); |
|
| 392 | ||
| 393 | if (count($ProductClasses) > 0) { |
|
| 394 | // 既に登録されていれば最初の画面に戻す |
|
| 395 | log_info('商品規格登録済', array($id)); |
|
| 396 | return $app->redirect($app->url('admin_product_product_class', array('id' => $id))); |
|
| 397 | } |
|
| 398 | ||
| 399 | $addProductClasses = array(); |
|
| 400 | ||
| @@ 454-458 (lines=5) @@ | ||
| 451 | // 更新 |
|
| 452 | log_info('商品規格更新開始', array($id)); |
|
| 453 | ||
| 454 | if (count($ProductClasses) == 0) { |
|
| 455 | // 商品規格が0件であれば最初の画面に戻す |
|
| 456 | log_info('商品規格が存在しません', array($id)); |
|
| 457 | return $app->redirect($app->url('admin_product_product_class', array('id' => $id))); |
|
| 458 | } |
|
| 459 | ||
| 460 | $checkProductClasses = array(); |
|
| 461 | $removeProductClasses = array(); |
|
| @@ 560-564 (lines=5) @@ | ||
| 557 | // 削除 |
|
| 558 | log_info('商品規格削除開始', array($id)); |
|
| 559 | ||
| 560 | if (count($ProductClasses) == 0) { |
|
| 561 | // 既に商品が削除されていれば元の画面に戻す |
|
| 562 | log_info('商品規格が存在しません', array($id)); |
|
| 563 | return $app->redirect($app->url('admin_product_product_class', array('id' => $id))); |
|
| 564 | } |
|
| 565 | ||
| 566 | foreach ($ProductClasses as $ProductClass) { |
|
| 567 | // 登録されている商品規格を非表示 |
|