@@ -392,8 +392,7 @@ discard block |
||
| 392 | 392 | $controller = $view->config( 'client/html/catalog/detail/url/controller', 'catalog' ); |
| 393 | 393 | $action = $view->config( 'client/html/catalog/detail/url/action', 'detail' ); |
| 394 | 394 | $config = $view->config( 'client/html/catalog/detail/url/config', [] ); |
| 395 | - } |
|
| 396 | - else |
|
| 395 | + } else |
|
| 397 | 396 | { |
| 398 | 397 | $params = $context->getSession()->get( 'aimeos/catalog/lists/params/last/' . $site, [] ); |
| 399 | 398 | |
@@ -487,8 +486,7 @@ discard block |
||
| 487 | 486 | (string) $view->param( 'b_supplier', '' ), |
| 488 | 487 | $view->param( 'b_siteid' ) |
| 489 | 488 | ); |
| 490 | - } |
|
| 491 | - else |
|
| 489 | + } else |
|
| 492 | 490 | { |
| 493 | 491 | $list = []; |
| 494 | 492 | $entries = (array) $view->param( 'b_prod', [] ); |
@@ -499,11 +497,14 @@ discard block |
||
| 499 | 497 | /** @var UploadedFile $file */ |
| 500 | 498 | foreach($entries[$i]['attrcustid'][$attrId] as $file) { |
| 501 | 499 | $filepath = 'basket-upload/' . md5($file->getFilename() . microtime(true)) . '.' . $file->extension(); |
| 502 | - try { |
|
| 500 | + try |
|
| 501 | + { |
|
| 503 | 502 | $stream = fopen($file->getRealPath(), 'r+'); |
| 504 | 503 | $fs->writes($filepath, $stream); |
| 505 | 504 | fclose($stream); |
| 506 | - } catch (\Exception $ex) { |
|
| 505 | + } |
|
| 506 | + catch (\Exception $ex) |
|
| 507 | + { |
|
| 507 | 508 | Log::error($ex->getMessage()); |
| 508 | 509 | } |
| 509 | 510 | $paths[] = $filepath; |
@@ -155,7 +155,8 @@ discard block |
||
| 155 | 155 | |
| 156 | 156 | </ul> |
| 157 | 157 | |
| 158 | - <?php else : ?> |
|
| 158 | + <?php else { |
|
| 159 | + : ?> |
|
| 159 | 160 | |
| 160 | 161 | <input type="hidden" value="1" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrconfid', 'qty', ''] ) ) ?>"> |
| 161 | 162 | <select id="select-<?= $enc->attr( $this->productItem->getId() . '-' . $code ) ?>" class="form-control select-list" |
@@ -204,7 +205,9 @@ discard block |
||
| 204 | 205 | value="<?= $enc->attr( $price->getValue() ) ?>" |
| 205 | 206 | <?php endif ?> |
| 206 | 207 | > |
| 207 | - <?php break; case 'date': ?> |
|
| 208 | + <?php break; |
|
| 209 | +} |
|
| 210 | +case 'date': ?> |
|
| 208 | 211 | <input id="select-<?= $enc->attr( $this->productItem->getId() . '-' . $key ) ?>" class="form-control" type="date" name="<?= $enc->attr( $this->formparam( ['b_prod', 0, 'attrcustid', $id] ) ) ?>"> |
| 209 | 212 | <?php break;case 'upload': ?> |
| 210 | 213 | <input id="upload-<?= $enc->attr( $this->productItem->getId() . '-' . $key ) ?>" |