|
@@ 424-429 (lines=6) @@
|
| 421 |
|
$tmpProductClass = $ProductClass; |
| 422 |
|
} |
| 423 |
|
|
| 424 |
|
if (count($addProductClasses) == 0) { |
| 425 |
|
// 対象がなければエラー |
| 426 |
|
log_info('商品規格が未選択', array($id)); |
| 427 |
|
$error = array('message' => '商品規格が選択されていません。'); |
| 428 |
|
return $this->render($app, $Product, $tmpProductClass, true, $form, $error); |
| 429 |
|
} |
| 430 |
|
|
| 431 |
|
// 選択された商品規格を登録 |
| 432 |
|
$this->insertProductClass($app, $Product, $addProductClasses); |
|
@@ 488-493 (lines=6) @@
|
| 485 |
|
$tempProductClass = $ProductClass; |
| 486 |
|
} |
| 487 |
|
|
| 488 |
|
if (count($checkProductClasses) == 0) { |
| 489 |
|
// 対象がなければエラー |
| 490 |
|
log_info('商品規格が存在しません', array($id)); |
| 491 |
|
$error = array('message' => '商品規格が選択されていません。'); |
| 492 |
|
return $this->render($app, $Product, $tempProductClass, false, $form, $error); |
| 493 |
|
} |
| 494 |
|
|
| 495 |
|
|
| 496 |
|
// 登録対象と更新対象の行か判断する |