if (filters.length === 1) {
filterSet.querySelector(Selectors.filterset.regions.filtermatch).classList.add('hidden');
- filterSet.querySelector(Selectors.filterset.fields.join).value = 1;
- filterSet.dataset.filterverb = 1;
+ filterSet.querySelector(Selectors.filterset.fields.join).value = 2;
+ filterSet.dataset.filterverb = 2;
} else {
filterSet.querySelector(Selectors.filterset.regions.filtermatch).classList.remove('hidden');
}
}
}}
-<div id="core_user-participantsfilter-{{uniqid}}" class="filter-group my-2 p-2 bg-light border-radius border" data-table-region="{{tableregionid}}" data-table-course-id="{{courseid}}" data-filterverb="1">
+<div id="core_user-participantsfilter-{{uniqid}}" class="filter-group my-2 p-2 bg-light border-radius border" data-table-region="{{tableregionid}}" data-table-course-id="{{courseid}}" data-filterverb="2">
<div data-filterregion="filtermatch" class="hidden">
<label for="core_user-local-participantsfilter-jointype-{{uniqid}}" class="my-0" aria-hidden="true">
{{#str}}match, core_user{{/str}}
<select class="custom-select" data-filterfield="join" id="core_user-local-participantsfilter-jointype-{{uniqid}}"
aria-label="{{#str}}filtersetmatchdescription, core_user{{/str}}">
<option value="0">{{#str}}none{{/str}}</option>
- <option selected=selected value="1">{{#str}}any{{/str}}</option>
- <option value="2">{{#str}}all{{/str}}</option>
+ <option value="1">{{#str}}any{{/str}}</option>
+ <option value="2" selected>{{#str}}all{{/str}}</option>
</select>
<span aria-hidden="true">{{#str}}matchofthefollowing, core_user{{/str}}</span>
</div>
And I should not see "Student 4" in the "participants" "table"
And I should not see "Teacher 1" in the "participants" "table"
And I click on "Add condition" "button"
- # Re-add a second filter and ensure the default (any) filterset match type is set.
+ # Re-add a second filter and ensure the default (All) filterset match type is set.
And I set the field "Match" in the "Filter 2" "fieldset" to "All"
And I set the field "type" in the "Filter 2" "fieldset" to "Role"
And I click on ".form-autocomplete-downarrow" "css_element" in the "Filter 2" "fieldset"
And I should see "Student 1" in the "participants" "table"
And I should see "Student 2" in the "participants" "table"
And I should see "Student 3" in the "participants" "table"
- And I should see "Student 4" in the "participants" "table"
+ And I should not see "Student 4" in the "participants" "table"
And I should not see "Teacher 1" in the "participants" "table"
@javascript