From 0bf7c3debc550b1e7ad56c7cee101ebf134aa3e3 Mon Sep 17 00:00:00 2001 From: veselcraft Date: Sat, 9 Oct 2021 13:55:25 +0300 Subject: [PATCH] Support: Fix for QnA's Ticket list --- Web/Models/Entities/Ticket.php | 5 +++++ Web/Models/Entities/TicketComment.php | 7 ++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Web/Models/Entities/Ticket.php b/Web/Models/Entities/Ticket.php index 1dea6e5d..daef26bc 100644 --- a/Web/Models/Entities/Ticket.php +++ b/Web/Models/Entities/Ticket.php @@ -75,5 +75,10 @@ class Ticket extends RowModel return (new Users)->get($this->getRecord()->user_id); } + function isAd(): bool /* Эх, костыли... */ + { + return false; + } + use Traits\TRichText; } diff --git a/Web/Models/Entities/TicketComment.php b/Web/Models/Entities/TicketComment.php index 35a0ce3f..25568bc7 100644 --- a/Web/Models/Entities/TicketComment.php +++ b/Web/Models/Entities/TicketComment.php @@ -11,13 +11,13 @@ use Nette\Database\Table\Selection; class TicketComment extends RowModel { - protected $tableName = "tickets_comments"; function getId(): int { return $this->getRecord()->id; } + function getUType(): int { return $this->getRecord()->user_type; @@ -71,5 +71,10 @@ class TicketComment extends RowModel return new DateTime($this->getRecord()->created); } + function isAd(): bool + { + return false; # Кооостыыыль!!! + } + use Traits\TRichText; }