From 82d1fc1a81d6dbaf7b52c4f3474c6d82c95ee9f0 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sun, 12 May 2019 16:03:31 -0700 Subject: [PATCH] Fixed: Monitored status being reset after refresh when artist is edited manually (cherry picked from commit 98b1a7681be36199283f36c692ed10ff30ded721) --- src/NzbDrone.Core/Music/Services/ArtistService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/Music/Services/ArtistService.cs b/src/NzbDrone.Core/Music/Services/ArtistService.cs index 8b44ce4d5..320430dd9 100644 --- a/src/NzbDrone.Core/Music/Services/ArtistService.cs +++ b/src/NzbDrone.Core/Music/Services/ArtistService.cs @@ -224,9 +224,13 @@ namespace NzbDrone.Core.Music public Artist UpdateArtist(Artist artist, bool publishUpdatedEvent = true) { _cache.Clear(); + var storedArtist = GetArtist(artist.Id); - var updatedArtist = _artistRepository.Update(artist); + // Never update AddOptions when updating an artist, keep it the same as the existing stored artist. + artist.AddOptions = storedArtist.AddOptions; + + var updatedArtist = _artistRepository.Update(artist); if (publishUpdatedEvent) { _eventAggregator.PublishEvent(new ArtistEditedEvent(updatedArtist, storedArtist));