diff --git a/University/UniversityBuisnessLogic/BuisnessLogic/ReportLogic.cs b/University/UniversityBuisnessLogic/BuisnessLogic/ReportLogic.cs index e258b11..7a64775 100644 --- a/University/UniversityBuisnessLogic/BuisnessLogic/ReportLogic.cs +++ b/University/UniversityBuisnessLogic/BuisnessLogic/ReportLogic.cs @@ -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; + } } }