diff --git a/Web/Presenters/OpenVKPresenter.php b/Web/Presenters/OpenVKPresenter.php index 93675004..3f023385 100755 --- a/Web/Presenters/OpenVKPresenter.php +++ b/Web/Presenters/OpenVKPresenter.php @@ -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")))); diff --git a/Web/Presenters/templates/@layout.xml b/Web/Presenters/templates/@layout.xml index 987ba282..441829ce 100644 --- a/Web/Presenters/templates/@layout.xml +++ b/Web/Presenters/templates/@layout.xml @@ -174,7 +174,7 @@ {if $canAccessHelpdesk} Helpdesk {if $helpdeskTicketAnsweredCount > 0} - ({$helpdeskTicketAnsweredCount}) + ({$helpdeskTicketNotAnsweredCount}) {/if} {/if}