Fixup "Support: Display the number of unanswered tickets in the left menu"

Excuse me :3
This commit is contained in:
Maxim Leshchenko 2021-12-05 00:56:42 +02:00
parent 98f8819c17
commit 8fd09a7846
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE
2 changed files with 3 additions and 3 deletions

View file

@ -208,8 +208,8 @@ abstract class OpenVKPresenter extends SimplePresenter
}
$this->template->ticketAnsweredCount = (new Tickets)->getTicketsCountByuId($this->user->id, 1);
if($user->can("write")->model('openvk\Web\Models\Entities\TicketReply')->whichBelongsTo(0))
$this->template->helpdeskTicketAnsweredCount = (new Tickets)->getTicketCount(0);
if($user->can("write")->model("openvk\Web\Models\Entities\TicketReply")->whichBelongsTo(0))
$this->template->helpdeskTicketNotAnsweredCount = (new Tickets)->getTicketCount(0);
}
setlocale(LC_TIME, ...(explode(";", tr("__locale"))));

View file

@ -174,7 +174,7 @@
{if $canAccessHelpdesk}
<a href="/support/tickets" class="link">Helpdesk
{if $helpdeskTicketAnsweredCount > 0}
(<b>{$helpdeskTicketAnsweredCount}</b>)
(<b>{$helpdeskTicketNotAnsweredCount}</b>)
{/if}
</a>
{/if}