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