Support: If the agent does not have a surname, do not display an extra dot

This commit is contained in:
Maxim Leshchenko 2021-12-07 20:05:04 +02:00
parent 9faf3090cd
commit 3bbdb3c85b
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -73,7 +73,12 @@
{if $thisUser->getChandlerUser()->can("write")->model('openvk\Web\Models\Entities\TicketReply')->whichBelongsTo(0)}
<a href="{$comment->getUser()->getURL()}">
<span class="nobold">
({$comment->getUser()->getFirstName()} {iconv_substr($comment->getUser()->getLastName(), 0, 1)}.)
{var lastName = $comment->getUser()->getLastName()}
{if empty($lastName)}
{$comment->getUser()->getFirstName()}
{else}
({$comment->getUser()->getFirstName()} {iconv_substr($lastName, 0, 1)}.)
{/if}
</span>
</a>
{/if}