From faeb78801caf8f449c685fdbb14cbbb0a6a275dc 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 author is edited manually Resolves #54 --- src/NzbDrone.Core/Books/Services/AuthorService.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/NzbDrone.Core/Books/Services/AuthorService.cs b/src/NzbDrone.Core/Books/Services/AuthorService.cs index 372ef218c..87b93d9b6 100644 --- a/src/NzbDrone.Core/Books/Services/AuthorService.cs +++ b/src/NzbDrone.Core/Books/Services/AuthorService.cs @@ -225,7 +225,12 @@ namespace NzbDrone.Core.Books public Author UpdateAuthor(Author author) { _cache.Clear(); + var storedAuthor = GetAuthor(author.Id); + + // Never update AddOptions when updating an author, keep it the same as the existing stored author. + author.AddOptions = storedAuthor.AddOptions; + var updatedAuthor = _authorRepository.Update(author); _eventAggregator.PublishEvent(new AuthorEditedEvent(updatedAuthor, storedAuthor));