fix reportLogic

This commit is contained in:
MaxKarme 2023-04-09 01:18:06 +04:00
parent 2b6b0c2c97
commit 6c8921128b

View File

@ -81,9 +81,13 @@ namespace UniversityBuisnessLogic.BuisnessLogic
foreach(var discipline in disciplines)
{
if(student.Statements.ContainsKey(discipline.Id))
foreach (var statement in discipline.DisciplineStatements)
{
record.Disciplines.Add(discipline.Name);
if(student.Statements.ContainsKey(statement.Key))
{
record.Disciplines.Add(discipline.Name);
break;
}
}
}