mirror of
https://github.com/openvk/openvk
synced 2025-01-09 17:29:42 +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);
|
return (new Users)->get($this->getRecord()->user_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isAd(): bool /* Эх, костыли... */
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
use Traits\TRichText;
|
use Traits\TRichText;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,13 +11,13 @@ use Nette\Database\Table\Selection;
|
||||||
|
|
||||||
class TicketComment extends RowModel
|
class TicketComment extends RowModel
|
||||||
{
|
{
|
||||||
|
|
||||||
protected $tableName = "tickets_comments";
|
protected $tableName = "tickets_comments";
|
||||||
|
|
||||||
function getId(): int
|
function getId(): int
|
||||||
{
|
{
|
||||||
return $this->getRecord()->id;
|
return $this->getRecord()->id;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getUType(): int
|
function getUType(): int
|
||||||
{
|
{
|
||||||
return $this->getRecord()->user_type;
|
return $this->getRecord()->user_type;
|
||||||
|
@ -71,5 +71,10 @@ class TicketComment extends RowModel
|
||||||
return new DateTime($this->getRecord()->created);
|
return new DateTime($this->getRecord()->created);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function isAd(): bool
|
||||||
|
{
|
||||||
|
return false; # Кооостыыыль!!!
|
||||||
|
}
|
||||||
|
|
||||||
use Traits\TRichText;
|
use Traits\TRichText;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue