From 710d92e9fea0b53c461b2f4aae691ffb3e92b15c Mon Sep 17 00:00:00 2001 From: Christian Dangl Date: Fri, 1 Dec 2023 15:21:04 +0100 Subject: [PATCH] MOL-1260: use technical state machine name for log entry on reopen --- src/Service/Transition/TransactionTransitionService.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 ) );