fix: use proper owner source

Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
Julius Härtl
2023-08-12 09:10:59 +02:00
parent beafcfa743
commit 3da4e2498f

View File

@@ -78,7 +78,9 @@ class DeckJsonService extends ABoardImportService {
public function mapMember($uid): ?string {
$ownerMap = $this->mapOwner($uid);
if ($uid === $this->getImportService()->getData()->owner && $ownerMap !== $this->getImportService()->getData()->owner) {
$sourceId = ($this->getImportService()->getData()->owner->primaryKey ?? $this->getImportService()->getData()->owner);
if ($uid === $sourceId && $ownerMap !== $sourceId) {
return $ownerMap;
}