Solving timeline small bugs.

Signed-off-by: alexandru.puiu <alexandrup@newro.co>
This commit is contained in:
alexandru.puiu
2019-08-26 18:00:19 +03:00
committed by Julius Härtl
parent 8d3bdc4c44
commit 58a9d86e30

View File

@@ -2,6 +2,8 @@
/** /**
* @copyright Copyright (c) 2018 Julius Härtl <jus@bitgrid.net> * @copyright Copyright (c) 2018 Julius Härtl <jus@bitgrid.net>
* *
* @copyright Copyright (c) 2019 Alexandru Puiu <alexpuiu20@yahoo.com>
*
* @author Julius Härtl <jus@bitgrid.net> * @author Julius Härtl <jus@bitgrid.net>
* *
* @license GNU AGPL version 3 or any later version * @license GNU AGPL version 3 or any later version
@@ -177,7 +179,7 @@ class ActivityManager {
$subject = $ownActivity ? $this->l10n->t('You have deleted card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has deleted card {card} in stack {stack} on board {board}'); $subject = $ownActivity ? $this->l10n->t('You have deleted card {card} in stack {stack} on board {board}') : $this->l10n->t('{user} has deleted card {card} in stack {stack} on board {board}');
break; break;
case self::SUBJECT_CARD_UPDATE_TITLE: case self::SUBJECT_CARD_UPDATE_TITLE:
$subject = $ownActivity ? $this->l10n->t('You have renamed the card {before} to {card}') : $this->l10n->t('{user} has renamed the card {before} to {card}'); $subject = $ownActivity ? $this->l10n->t('You have renamed the card {before} to {after}') : $this->l10n->t('{user} has renamed the card {before} to {after}');
break; break;
case self::SUBJECT_CARD_UPDATE_DESCRIPTION: case self::SUBJECT_CARD_UPDATE_DESCRIPTION:
if (!isset($subjectParams['before'])) { if (!isset($subjectParams['before'])) {
@@ -384,6 +386,7 @@ class ActivityManager {
} }
if ($subject === self::SUBJECT_CARD_UPDATE_STACKID) { if ($subject === self::SUBJECT_CARD_UPDATE_STACKID) {
$subjectParams['stackBefore'] = $this->stackMapper->find($additionalParams['before']); $subjectParams['stackBefore'] = $this->stackMapper->find($additionalParams['before']);
$subjectParams['stack'] = $this->stackMapper->find($additionalParams['after']);
} }
$subjectParams['author'] = $this->userId; $subjectParams['author'] = $this->userId;