зеркало из https://github.com/nextcloud/deck.git
Merge pull request #5859 from mulles/patch-1
Update TrelloJsonService.php
This commit is contained in:
Коммит
ea01d84419
|
@ -117,7 +117,7 @@ class TrelloJsonService extends ABoardImportService {
|
|||
$cardId = $this->cards[$trelloCard->id]->getId();
|
||||
$comment = new Comment();
|
||||
if (!empty($this->getImportService()->getConfig('uidRelation')->{$trelloComment->memberCreator->username})) {
|
||||
$actor = $this->getImportService()->getConfig('uidRelation')->{$trelloComment->memberCreator->username}->getUID();
|
||||
$actor = $this->getImportService()->getConfig('uidRelation')->{$trelloComment->memberCreator->username};
|
||||
} else {
|
||||
$actor = $this->getImportService()->getConfig('owner')->getUID();
|
||||
}
|
||||
|
@ -345,7 +345,7 @@ class TrelloJsonService extends ABoardImportService {
|
|||
|
||||
private function replaceUsernames(string $text): string {
|
||||
foreach ($this->getImportService()->getConfig('uidRelation') as $trello => $nextcloud) {
|
||||
$text = str_replace($trello, $nextcloud->getUID(), $text);
|
||||
$text = str_replace($trello, $nextcloud, $text);
|
||||
}
|
||||
return $text;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче