|
@@ 330-334 (lines=5) @@
|
| 327 |
|
$tmpProductClass = $ProductClass; |
| 328 |
|
} |
| 329 |
|
|
| 330 |
|
if (count($addProductClasses) == 0) { |
| 331 |
|
// 対象がなければエラー |
| 332 |
|
$error = array('message' => '商品規格が選択されていません。'); |
| 333 |
|
return $this->render($app, $Product, $tmpProductClass, true, $form, $error); |
| 334 |
|
} |
| 335 |
|
|
| 336 |
|
// 選択された商品規格を登録 |
| 337 |
|
$this->insertProductClass($app, $Product, $addProductClasses); |
|
@@ 389-393 (lines=5) @@
|
| 386 |
|
$tempProductClass = $ProductClass; |
| 387 |
|
} |
| 388 |
|
|
| 389 |
|
if (count($checkProductClasses) == 0) { |
| 390 |
|
// 対象がなければエラー |
| 391 |
|
$error = array('message' => '商品規格が選択されていません。'); |
| 392 |
|
return $this->render($app, $Product, $tempProductClass, false, $form, $error); |
| 393 |
|
} |
| 394 |
|
|
| 395 |
|
|
| 396 |
|
// 登録対象と更新対象の行か判断する |