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; }