Merge pull request #6257 from nextcloud/fix/no-cross-referencing-in-labels

copy labels when moving cards between boards
This commit is contained in:
Julius Härtl
2024-08-29 12:30:17 +02:00
committed by GitHub
3 changed files with 38 additions and 3 deletions

View File

@@ -125,8 +125,10 @@ class DeckJsonService extends ABoardImportService {
foreach ($this->tmpCards as $sourceCard) {
foreach ($sourceCard->labels as $label) {
$cardId = $this->cards[$sourceCard->id]->getId();
$labelId = $this->labels[$label->id]->getId();
$cardsLabels[$cardId][] = $labelId;
if ($this->getImportService()->getData()->id === $label->boardId) {
$labelId = $this->labels[$label->id]->getId();
$cardsLabels[$cardId][] = $labelId;
}
}
}
return $cardsLabels;