Skip to content

Commit

Permalink
Merge pull request #370 from i4Ds/360-notenexport
Browse files Browse the repository at this point in the history
solved the issue with the Noten Export
  • Loading branch information
Delberin-Ali authored Oct 15, 2024
2 parents 6db1e4c + 233833b commit 419c0b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ProStudCreator/AdminPage.aspx.cs
Original file line number Diff line number Diff line change
Expand Up @@ -274,15 +274,15 @@ protected IEnumerable<Project> GetSelectedExcelExportProjects()
// Study Course
if (SelectedStudyCourse.SelectedValue == "all")
{
projectsForExcelExport = projectsForExcelExport.Where(p => p.LogStudyCourse != null);
projectsForExcelExport = projectsForExcelExport.Where(p => p.LogStudyCourseStudent1 != null || p.LogStudyCourseStudent2 != null);
}
else if (SelectedStudyCourse.SelectedValue == "cs")
{
projectsForExcelExport = projectsForExcelExport.Where(p => p.LogStudyCourse == 1);
projectsForExcelExport = projectsForExcelExport.Where(p => p.LogStudyCourseStudent1 == 1 || p.LogStudyCourseStudent2 == 1);
}
else if (SelectedStudyCourse.SelectedValue == "ds")
{
projectsForExcelExport = projectsForExcelExport.Where(p => p.LogStudyCourse == 2);
projectsForExcelExport = projectsForExcelExport.Where(p => p.LogStudyCourseStudent1 == 2 || p.LogStudyCourseStudent2 == 2);
}
else
{
Expand Down

0 comments on commit 419c0b5

Please sign in to comment.