From 08e99e7fb20d5085fa0d9105cd121febb8b7bd5f Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Mon, 27 Jun 2022 17:50:37 +0200
Subject: [PATCH] OZG-1513 handle SEND_POSTFACH_NACHRICHT order instead of
 SEND_POSTFACH_MAIL

---
 .../java/de/itvsh/goofy/common/command/CommandController.java   | 2 +-
 .../java/de/itvsh/goofy/postfach/PostfachMailTestFactory.java   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/goofy-server/src/main/java/de/itvsh/goofy/common/command/CommandController.java b/goofy-server/src/main/java/de/itvsh/goofy/common/command/CommandController.java
index f73fd1f86b..d6c45c11a6 100644
--- a/goofy-server/src/main/java/de/itvsh/goofy/common/command/CommandController.java
+++ b/goofy-server/src/main/java/de/itvsh/goofy/common/command/CommandController.java
@@ -90,7 +90,7 @@ public class CommandController {
 		}
 
 		private boolean isSendPostfachMailOrder(CreateCommand command) {
-			return command.getOrder() == CommandOrder.SEND_POSTFACH_MAIL || command.getOrder() == CommandOrder.SEND_POSTFACH_NACHRICHT;
+			return command.getOrder() == CommandOrder.SEND_POSTFACH_NACHRICHT;
 		}
 
 		CreateCommand prepareCommandForPostfachNachricht(CreateCommand command, String vorgangId) {
diff --git a/goofy-server/src/test/java/de/itvsh/goofy/postfach/PostfachMailTestFactory.java b/goofy-server/src/test/java/de/itvsh/goofy/postfach/PostfachMailTestFactory.java
index 4d2661b45a..bea7a39b6e 100644
--- a/goofy-server/src/test/java/de/itvsh/goofy/postfach/PostfachMailTestFactory.java
+++ b/goofy-server/src/test/java/de/itvsh/goofy/postfach/PostfachMailTestFactory.java
@@ -72,7 +72,7 @@ public class PostfachMailTestFactory {
 	}
 
 	public static String buildSendPostfachMailContent(PostfachMail postfachMail) {
-		return buildSendPostfachMailContent(postfachMail, CommandOrder.SEND_POSTFACH_MAIL);
+		return buildSendPostfachMailContent(postfachMail, CommandOrder.SEND_POSTFACH_NACHRICHT);
 	}
 
 	public static String buildSendPostfachMailContent(PostfachMail postfachMail, CommandOrder order) {
-- 
GitLab