Browse Source

fix torrent poster update on last poster delete #18

main
ghost 1 year ago
parent
commit
99ea797699
  1. 9
      src/Service/TorrentService.php

9
src/Service/TorrentService.php

@ -1209,12 +1209,19 @@ class TorrentService
$torrent->setTorrentPosterId( $torrent->setTorrentPosterId(
$torrentPoster->getId() $torrentPoster->getId()
); );
}
else
{
$torrent->setTorrentPosterId(
null
);
}
$this->entityManagerInterface->persist($torrent); $this->entityManagerInterface->persist($torrent);
$this->entityManagerInterface->flush(); $this->entityManagerInterface->flush();
} }
} }
}

Loading…
Cancel
Save