From 88c051fd15567f94ec4d596348a784a169b1b98e Mon Sep 17 00:00:00 2001 From: Pavel Date: Tue, 16 Jul 2019 09:22:26 +0300 Subject: [PATCH] Send comment field from delivery if it present --- src/routing.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/routing.go b/src/routing.go index d30daad..cab1fb1 100644 --- a/src/routing.go +++ b/src/routing.go @@ -864,6 +864,10 @@ func getOrderMessage(dataOrder *v1.MessageDataOrder) string { mb += ";\n" + replaceMarkdownSymbols(dataOrder.Delivery.Address) } + if dataOrder.Delivery.Comment != "" { + mb += ";\n" + replaceMarkdownSymbols(dataOrder.Delivery.Comment) + } + mb += "\n" }