diff --git a/src/Service/Transition/TransactionTransitionService.php b/src/Service/Transition/TransactionTransitionService.php index 15f2b9f80..0510788a8 100644 --- a/src/Service/Transition/TransactionTransitionService.php +++ b/src/Service/Transition/TransactionTransitionService.php @@ -72,7 +72,6 @@ public function processTransaction(OrderTransactionEntity $transaction, Context public function reOpenTransaction(OrderTransactionEntity $transaction, Context $context): void { $currentStatus = ($transaction->getStateMachineState() instanceof StateMachineStateEntity) ? $transaction->getStateMachineState()->getTechnicalName() : ''; - $currentStatusName = ($transaction->getStateMachineState() instanceof StateMachineStateEntity) ? $transaction->getStateMachineState()->getName() : ''; if ($this->isFinalOrTargetStatus($currentStatus, [OrderTransactionStates::STATE_OPEN])) { return; @@ -85,7 +84,7 @@ public function reOpenTransaction(OrderTransactionEntity $transaction, Context $ $this->logger->error( sprintf( 'It is not allowed to change status to open from %s. Aborting reopen transition', - $currentStatusName + $currentStatus ) );