docs: #319 bug fix

This commit is contained in:
Hamid Reza Mohammadi 2022-05-19 13:09:31 +04:30
parent ffb95e41e4
commit 08f5ac39c1
2 changed files with 6 additions and 1 deletions

View File

@ -12,6 +12,10 @@
<NoWarn>1701;1702;1591</NoWarn>
</PropertyGroup>
<ItemGroup>
<None Remove="Services\Implementation\GanjoorService-Partials\GanjoorService-ModerateSectionCorrection.cs~RF19e20e05.TMP" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="DNTPersianUtils.Core" Version="5.4.0" />
<PackageReference Include="Microsoft.Data.Sqlite" Version="6.0.3" />

View File

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