mirror of
https://github.com/moodle/moodle.git
synced 2025-03-05 00:22:43 +01:00
When there is no group but a default groupmode is set, the group configuration is provided but the group data is not present. This resulted in a JS error and an invalid filter line was left in place. This change conditionally checks the data-filter-type-class value of the filterDataNode so that no JS error is produced if the filterDataNode does not exist and therefore removes the empty filter row.