MDL-72321 datafilter: Stop disabling jointype field

This was causing behat test failures due to the test trying to
set the disabled jointype field before the filter type was selected.
This commit is contained in:
Mark Johnson 2023-09-01 16:30:40 +01:00 committed by Andrew Nicols
parent 7d6ed82571
commit 4b160a7c7b
No known key found for this signature in database
GPG key ID: 6D1E3157C8CFBF14
4 changed files with 3 additions and 4 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -203,7 +203,6 @@ export default class {
// Update the join list.
this.updateJoinList(JSON.parse(filterDataNode.dataset.joinList), filterRow);
const joinField = filterRow.querySelector(Selectors.filter.fields.join);
joinField.disabled = false;
if (!isNaN(filterJoin)) {
joinField.value = filterJoin;
}

View file

@ -39,7 +39,7 @@
<div class="border-radius my-2 p-2 bg-white border d-flex flex-column flex-md-row align-items-md-stretch mr-0 ml-0 row">
<div class="d-flex flex-column flex-md-row align-items-md-center my-1">
<label for="core-filter_row-jointype-{{uniqid}}" class="mr-md-2 mb-md-0">{{#str}}match{{/str}}</label>
<select class="custom-select mb-1 mb-md-0 mr-md-2" data-filterfield="join" id="core-filter_row-jointype-{{uniqid}}" disabled>
<select class="custom-select mb-1 mb-md-0 mr-md-2" data-filterfield="join" id="core-filter_row-jointype-{{uniqid}}">
<option value="0">{{#str}}none{{/str}}</option>
<option selected=selected value="1">{{#str}}any{{/str}}</option>
<option value="2">{{#str}}all{{/str}}</option>