|
@@ 417-422 (lines=6) @@
|
| 414 |
|
$tmpProductClass = $ProductClass; |
| 415 |
|
} |
| 416 |
|
|
| 417 |
|
if (count($addProductClasses) == 0) { |
| 418 |
|
// 対象がなければエラー |
| 419 |
|
log_info('商品規格が未選択', array($id)); |
| 420 |
|
$error = array('message' => '商品規格が選択されていません。'); |
| 421 |
|
return $this->render($app, $Product, $tmpProductClass, true, $form, $error); |
| 422 |
|
} |
| 423 |
|
|
| 424 |
|
// 選択された商品規格を登録 |
| 425 |
|
$this->insertProductClass($app, $Product, $addProductClasses); |
|
@@ 481-486 (lines=6) @@
|
| 478 |
|
$tempProductClass = $ProductClass; |
| 479 |
|
} |
| 480 |
|
|
| 481 |
|
if (count($checkProductClasses) == 0) { |
| 482 |
|
// 対象がなければエラー |
| 483 |
|
log_info('商品規格が存在しません', array($id)); |
| 484 |
|
$error = array('message' => '商品規格が選択されていません。'); |
| 485 |
|
return $this->render($app, $Product, $tempProductClass, false, $form, $error); |
| 486 |
|
} |
| 487 |
|
|
| 488 |
|
|
| 489 |
|
// 登録対象と更新対象の行か判断する |