From 98262962562015fd327b50eedbc6d0bc2f2d77b7 Mon Sep 17 00:00:00 2001 From: Maxim Leshchenko Date: Tue, 7 Dec 2021 20:11:51 +0200 Subject: [PATCH] Improve and slightly fix the last commit --- Web/Presenters/templates/Support/AnswerTicket.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Web/Presenters/templates/Support/AnswerTicket.xml b/Web/Presenters/templates/Support/AnswerTicket.xml index 89541dd6..0ba70cee 100644 --- a/Web/Presenters/templates/Support/AnswerTicket.xml +++ b/Web/Presenters/templates/Support/AnswerTicket.xml @@ -74,8 +74,8 @@ {var lastName = $comment->getUser()->getLastName()} - {if empty($lastName)} - {$comment->getUser()->getFirstName()} + {if empty($lastName) || $lastName == " "} + ({$comment->getUser()->getFirstName()}) {else} ({$comment->getUser()->getFirstName()} {iconv_substr($lastName, 0, 1)}.) {/if}