Support: Fix for QnA's Ticket list

This commit is contained in:
veselcraft 2021-10-09 13:55:25 +03:00
parent 820c9c22fe
commit 0bf7c3debc
2 changed files with 11 additions and 1 deletions

View file

@ -75,5 +75,10 @@ class Ticket extends RowModel
return (new Users)->get($this->getRecord()->user_id);
}
function isAd(): bool /* Эх, костыли... */
{
return false;
}
use Traits\TRichText;
}

View file

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