Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl 2018-06-13 18:56:24 +02:00
Родитель 344ed6d928
Коммит 7b230d567e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4C614C6ED2CDE6DF
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -36,6 +36,7 @@ class Card extends RelationalEntity {
protected $labels; protected $labels;
protected $assignedUsers; protected $assignedUsers;
protected $attachments; protected $attachments;
protected $attachmentCount;
protected $owner; protected $owner;
protected $order; protected $order;
protected $archived = false; protected $archived = false;
@ -60,6 +61,7 @@ class Card extends RelationalEntity {
$this->addRelation('labels'); $this->addRelation('labels');
$this->addRelation('assignedUsers'); $this->addRelation('assignedUsers');
$this->addRelation('attachments'); $this->addRelation('attachments');
$this->addRelation('attachmentCount');
$this->addRelation('participants'); $this->addRelation('participants');
$this->addResolvable('owner'); $this->addResolvable('owner');
} }

Просмотреть файл

@ -74,7 +74,7 @@ class StackService {
if (array_key_exists($card->id, $labels)) { if (array_key_exists($card->id, $labels)) {
$cards[$cardIndex]->setLabels($labels[$card->id]); $cards[$cardIndex]->setLabels($labels[$card->id]);
} }
$card->setAttachments($this->attachmentService->count($card->getId())); $card->setAttachmentCount($this->attachmentService->count($card->getId()));
} }
$stacks[$stackIndex]->setCards($cards); $stacks[$stackIndex]->setCards($cards);
} }