@@ 314-318 (lines=5) @@ | ||
311 | // 新規登録 |
|
312 | log_info('商品規格新規登録開始', array($id)); |
|
313 | ||
314 | if (count($ProductClasses) > 0) { |
|
315 | // 既に登録されていれば最初の画面に戻す |
|
316 | log_info('商品規格登録済', array($id)); |
|
317 | return $app->redirect($app->url('admin_product_product_class', array('id' => $id))); |
|
318 | } |
|
319 | ||
320 | $addProductClasses = array(); |
|
321 | ||
@@ 375-379 (lines=5) @@ | ||
372 | // 更新 |
|
373 | log_info('商品規格更新開始', array($id)); |
|
374 | ||
375 | if (count($ProductClasses) == 0) { |
|
376 | // 商品規格が0件であれば最初の画面に戻す |
|
377 | log_info('商品規格が存在しません', array($id)); |
|
378 | return $app->redirect($app->url('admin_product_product_class', array('id' => $id))); |
|
379 | } |
|
380 | ||
381 | $checkProductClasses = array(); |
|
382 | $removeProductClasses = array(); |
|
@@ 481-485 (lines=5) @@ | ||
478 | // 削除 |
|
479 | log_info('商品規格削除開始', array($id)); |
|
480 | ||
481 | if (count($ProductClasses) == 0) { |
|
482 | // 既に商品が削除されていれば元の画面に戻す |
|
483 | log_info('商品規格が存在しません', array($id)); |
|
484 | return $app->redirect($app->url('admin_product_product_class', array('id' => $id))); |
|
485 | } |
|
486 | ||
487 | foreach ($ProductClasses as $ProductClass) { |
|
488 | // 登録されている商品規格に削除フラグをセット |