@@ -211,7 +211,9 @@ |
||
| 211 | 211 | |
| 212 | 212 | // if product is found, set relation to OrderDetail |
| 213 | 213 | $OrderProduct = ProductPage::get()->byID((int) $option->product_option_value); |
| 214 | - if ($OrderProduct) $OrderDetail->ProductID = $OrderProduct->ID; |
|
| 214 | + if ($OrderProduct) { |
|
| 215 | + $OrderDetail->ProductID = $OrderProduct->ID; |
|
| 216 | + } |
|
| 215 | 217 | |
| 216 | 218 | } else { |
| 217 | 219 | |