| @@ 578-585 (lines=8) @@ | ||
| 575 | } |
|
| 576 | } |
|
| 577 | try { |
|
| 578 | if ($count) { |
|
| 579 | $this->entityManager->flush(); |
|
| 580 | $msg = $this->translator->trans('admin.order.index.bulk_order_status_success_count', [ |
|
| 581 | '%count%' => $count, |
|
| 582 | '%status%' => $OrderStatus->getName(), |
|
| 583 | ]); |
|
| 584 | $this->addSuccess($msg, 'admin'); |
|
| 585 | } |
|
| 586 | } catch (\Exception $e) { |
|
| 587 | log_error('Bulk order status error', [$e]); |
|
| 588 | $this->addError('admin.flash.register_failed', 'admin'); |
|
| @@ 1019-1026 (lines=8) @@ | ||
| 1016 | } |
|
| 1017 | } |
|
| 1018 | try { |
|
| 1019 | if ($count) { |
|
| 1020 | $this->entityManager->flush(); |
|
| 1021 | $msg = $this->translator->trans('admin.product.index.bulk_product_status_success_count', [ |
|
| 1022 | '%count%' => $count, |
|
| 1023 | '%status%' => $ProductStatus->getName(), |
|
| 1024 | ]); |
|
| 1025 | $this->addSuccess($msg, 'admin'); |
|
| 1026 | } |
|
| 1027 | } catch (\Exception $e) { |
|
| 1028 | $this->addError($e->getMessage(), 'admin'); |
|
| 1029 | } |
|