Fixed: Monitored status being reset after refresh when author is edited manually

Resolves #54
pull/3282/head v0.3.18.2411
Mark McDowall 6 years ago committed by Bogdan
parent bd5695f2dd
commit faeb78801c

@ -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));

Loading…
Cancel
Save