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