Skip to content

Commit

Permalink
[MBL-17526][Teacher] EditAssignmentDetails crash #2428
Browse files Browse the repository at this point in the history
refs: MBL-17526
affects: Teacher
release note: none
  • Loading branch information
tamaskozmer authored Apr 25, 2024
1 parent cded309 commit b4cf229
Showing 1 changed file with 12 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,18 @@ class EditAssignmentDetailsFragment : BaseFragment() {
if (dueDateGroup.isEveryone) {
assignees += getString(if (editDateGroups.any { it.hasOverrideAssignees }) R.string.everyone_else else R.string.everyone)
}
dueDateGroup.groupIds.forEach { assignees.add(groupsMapped[it]?.name!!) }
dueDateGroup.sectionIds.forEach { assignees.add(sectionsMapped[it]?.name!!) }
dueDateGroup.groupIds.forEach {
val group = groupsMapped[it]
if (group?.name != null) {
assignees.add(group.name!!)
}
}
dueDateGroup.sectionIds.forEach {
val section = sectionsMapped[it]
if (section != null) {
assignees.add(section.name)
}
}
dueDateGroup.studentIds.forEach {
val student = studentsMapped[it]
if (student != null) {
Expand Down

0 comments on commit b4cf229

Please sign in to comment.