From 08f5ac39c117724901493b0c01c17382885a2951 Mon Sep 17 00:00:00 2001 From: Hamid Reza Mohammadi Date: Thu, 19 May 2022 13:09:31 +0430 Subject: [PATCH] docs: #319 bug fix --- RMuseum/RMuseum.csproj | 4 ++++ .../GanjoorService-ModerateSectionCorrection.cs | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/RMuseum/RMuseum.csproj b/RMuseum/RMuseum.csproj index 5c2edaa9..0c087aaf 100644 --- a/RMuseum/RMuseum.csproj +++ b/RMuseum/RMuseum.csproj @@ -12,6 +12,10 @@ 1701;1702;1591 + + + + diff --git a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-ModerateSectionCorrection.cs b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-ModerateSectionCorrection.cs index 70d20ebd..f480fdc5 100644 --- a/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-ModerateSectionCorrection.cs +++ b/RMuseum/Services/Implementation/GanjoorService-Partials/GanjoorService-ModerateSectionCorrection.cs @@ -281,7 +281,8 @@ namespace RMuseum.Services.Implementation } _context.Update(updatingSection); - foreach (var relatedSection in sections.Where(s => s.GanjoorMetreRefSectionIndex == editingSectionNotTracked.Index)) + var relatedSections = sections.Where(s => s.GanjoorMetreRefSectionIndex == editingSectionNotTracked.Index); + foreach (var relatedSection in relatedSections) { var relatedSectionVerses = FilterSectionVerses(relatedSection, verses); if (relatedSectionVerses.Any(v => v.VOrder >= vOrder))