| @@ 1024-1031 (lines=8) @@ | ||
| 1021 | } |
|
| 1022 | } |
|
| 1023 | try { |
|
| 1024 | if ($count) { |
|
| 1025 | $this->entityManager->flush(); |
|
| 1026 | $msg = $this->translator->trans('admin.product.index.bulk_product_status_success_count', [ |
|
| 1027 | '%count%' => $count, |
|
| 1028 | '%status%' => $ProductStatus->getName(), |
|
| 1029 | ]); |
|
| 1030 | $this->addSuccess($msg, 'admin'); |
|
| 1031 | } |
|
| 1032 | } catch (\Exception $e) { |
|
| 1033 | $this->addError($e->getMessage(), 'admin'); |
|
| 1034 | } |
|
| @@ 541-548 (lines=8) @@ | ||
| 538 | } |
|
| 539 | } |
|
| 540 | try { |
|
| 541 | if ($count) { |
|
| 542 | $this->entityManager->flush(); |
|
| 543 | $msg = $this->translator->trans('admin.order.index.bulk_order_status_success_count', [ |
|
| 544 | '%count%' => $count, |
|
| 545 | '%status%' => $OrderStatus->getName(), |
|
| 546 | ]); |
|
| 547 | $this->addSuccess($msg, 'admin'); |
|
| 548 | } |
|
| 549 | } catch (\Exception $e) { |
|
| 550 | log_error('Bulk order status error', [$e]); |
|
| 551 | $this->addError('admin.flash.register_failed', 'admin'); |
|