|
@@ 344-349 (lines=6) @@
|
| 341 |
|
$tmpProductClass = $ProductClass; |
| 342 |
|
} |
| 343 |
|
|
| 344 |
|
if (count($addProductClasses) == 0) { |
| 345 |
|
// 対象がなければエラー |
| 346 |
|
log_info('商品規格が未選択', array($id)); |
| 347 |
|
$error = array('message' => '商品規格が選択されていません。'); |
| 348 |
|
return $this->render($app, $Product, $tmpProductClass, true, $form, $error); |
| 349 |
|
} |
| 350 |
|
|
| 351 |
|
// 選択された商品規格を登録 |
| 352 |
|
$this->insertProductClass($app, $Product, $addProductClasses); |
|
@@ 408-413 (lines=6) @@
|
| 405 |
|
$tempProductClass = $ProductClass; |
| 406 |
|
} |
| 407 |
|
|
| 408 |
|
if (count($checkProductClasses) == 0) { |
| 409 |
|
// 対象がなければエラー |
| 410 |
|
log_info('商品規格が存在しません', array($id)); |
| 411 |
|
$error = array('message' => '商品規格が選択されていません。'); |
| 412 |
|
return $this->render($app, $Product, $tempProductClass, false, $form, $error); |
| 413 |
|
} |
| 414 |
|
|
| 415 |
|
|
| 416 |
|
// 登録対象と更新対象の行か判断する |