| @@ 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 | } |
|
| @@ 558-565 (lines=8) @@ | ||
| 555 | } |
|
| 556 | } |
|
| 557 | try { |
|
| 558 | if ($count) { |
|
| 559 | $this->entityManager->flush(); |
|
| 560 | $msg = $this->translator->trans('admin.order.index.bulk_order_status_success_count', [ |
|
| 561 | '%count%' => $count, |
|
| 562 | '%status%' => $OrderStatus->getName(), |
|
| 563 | ]); |
|
| 564 | $this->addSuccess($msg, 'admin'); |
|
| 565 | } |
|
| 566 | } catch (\Exception $e) { |
|
| 567 | log_error('Bulk order status error', [$e]); |
|
| 568 | $this->addError('admin.flash.register_failed', 'admin'); |
|