docs: #334 bug fix: batch rhythm assignment does not assign rhythms to dependent sections

This commit is contained in:
Hamid Reza Mohammadi 2022-06-17 20:17:27 +04:30
parent 4558de6d7d
commit 35b1cb532d

View File

@ -62,7 +62,7 @@ namespace RMuseum.Services.Implementation
if(section.GanjoorMetreId != null)
{
var dependentSections = sections.Where(s => s.GanjoorMetreRefSectionIndex == section.Id).ToList();
var dependentSections = sections.Where(s => s.GanjoorMetreRefSectionIndex == section.Index).ToList();
foreach (var dsection in dependentSections)
{
dsection.GanjoorMetreId = section.GanjoorMetreId;
@ -78,7 +78,7 @@ namespace RMuseum.Services.Implementation
if (section.GanjoorMetreId != null)
{
var dependentSections = sections.Where(s => s.GanjoorMetreRefSectionIndex == section.Id).ToList();
var dependentSections = sections.Where(s => s.GanjoorMetreRefSectionIndex == section.Index).ToList();
foreach (var dsection in dependentSections)
{
if(dsection.GanjoorMetreId != null && !string.IsNullOrEmpty(dsection.RhymeLetters))