From 0dfe87889366b121de0c3eff3baaa6b14f335bd0 Mon Sep 17 00:00:00 2001 From: tidusjar Date: Fri, 13 Oct 2017 22:01:48 +0100 Subject: [PATCH] Fixed #1546 --- src/Ombi.Store/Repository/Requests/MovieRequestRepository.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Ombi.Store/Repository/Requests/MovieRequestRepository.cs b/src/Ombi.Store/Repository/Requests/MovieRequestRepository.cs index 4a280d366..76a5a8636 100644 --- a/src/Ombi.Store/Repository/Requests/MovieRequestRepository.cs +++ b/src/Ombi.Store/Repository/Requests/MovieRequestRepository.cs @@ -62,6 +62,11 @@ namespace Ombi.Store.Repository.Requests public async Task Update(MovieRequests request) { + if (Db.Entry(request).State == EntityState.Detached) + { + Db.MovieRequests.Attach(request); + Db.Update(request); + } await Db.SaveChangesAsync(); }