mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Support: Fix for QnA's Ticket list
This commit is contained in:
parent
820c9c22fe
commit
0bf7c3debc
2 changed files with 11 additions and 1 deletions
|
@ -75,5 +75,10 @@ class Ticket extends RowModel
|
|||
return (new Users)->get($this->getRecord()->user_id);
|
||||
}
|
||||
|
||||
function isAd(): bool /* Эх, костыли... */
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
use Traits\TRichText;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue