diff --git a/admin/classes/reportbuilder/local/systemreports/users.php b/admin/classes/reportbuilder/local/systemreports/users.php index f1dba3de83e4a..cbf9868f14521 100644 --- a/admin/classes/reportbuilder/local/systemreports/users.php +++ b/admin/classes/reportbuilder/local/systemreports/users.php @@ -184,6 +184,7 @@ protected function add_filters(): void { $entityuseralias = $entityuser->get_table_alias('user'); $filters = [ + 'user:fullname', 'user:firstname', 'user:lastname', 'user:username', diff --git a/admin/tests/behat/filter_users.feature b/admin/tests/behat/filter_users.feature index cb9bbf3525078..1b60d4edbbda2 100644 --- a/admin/tests/behat/filter_users.feature +++ b/admin/tests/behat/filter_users.feature @@ -159,3 +159,24 @@ Feature: An administrator can filter user accounts by role, cohort and other pro And I should not see "User One" in the "reportbuilder-table" "table" And I should not see "User Three" in the "reportbuilder-table" "table" And I should not see "User Four" in the "reportbuilder-table" "table" + + @javascript + Scenario: Filter users by full name + When I click on "Filters" "button" + And I set the following fields in the "Full name" "core_reportbuilder > Filter" to these values: + | Full name operator | Is equal to | + | Full name value | User One | + And I click on "Apply" "button" in the "[data-region='report-filters']" "css_element" + Then I should see "User One" in the "reportbuilder-table" "table" + And I should not see "User Two" in the "reportbuilder-table" "table" + And I should not see "User Three" in the "reportbuilder-table" "table" + And I should not see "User Four" in the "reportbuilder-table" "table" + And I click on "Reset all" "button" in the "[data-region='report-filters']" "css_element" + And I set the following fields in the "Full name" "core_reportbuilder > Filter" to these values: + | Full name operator | Is equal to | + | Full name value | User Two | + And I click on "Apply" "button" in the "[data-region='report-filters']" "css_element" + And I should see "User Two" in the "reportbuilder-table" "table" + And I should not see "User One" in the "reportbuilder-table" "table" + And I should not see "User Three" in the "reportbuilder-table" "table" + And I should not see "User Four" in the "reportbuilder-table" "table" diff --git a/admin/tool/cohortroles/db/upgrade.php b/admin/tool/cohortroles/db/upgrade.php index b102f5b7a2b1b..ed03dab748f83 100644 --- a/admin/tool/cohortroles/db/upgrade.php +++ b/admin/tool/cohortroles/db/upgrade.php @@ -48,5 +48,8 @@ function xmldb_tool_cohortroles_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/admin/tool/customlang/db/upgrade.php b/admin/tool/customlang/db/upgrade.php index d9182cf16e3f1..a113e542e15fa 100644 --- a/admin/tool/customlang/db/upgrade.php +++ b/admin/tool/customlang/db/upgrade.php @@ -33,5 +33,8 @@ function xmldb_tool_customlang_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/admin/tool/dataprivacy/db/upgrade.php b/admin/tool/dataprivacy/db/upgrade.php index 935a364e04690..03282262f108c 100644 --- a/admin/tool/dataprivacy/db/upgrade.php +++ b/admin/tool/dataprivacy/db/upgrade.php @@ -103,5 +103,8 @@ function xmldb_tool_dataprivacy_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/admin/tool/log/db/upgrade.php b/admin/tool/log/db/upgrade.php index 5420435a18ee9..4c963a947df99 100644 --- a/admin/tool/log/db/upgrade.php +++ b/admin/tool/log/db/upgrade.php @@ -38,5 +38,8 @@ function xmldb_tool_log_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/admin/tool/log/store/database/db/upgrade.php b/admin/tool/log/store/database/db/upgrade.php index bcc48974d653d..ba70293c25645 100644 --- a/admin/tool/log/store/database/db/upgrade.php +++ b/admin/tool/log/store/database/db/upgrade.php @@ -32,5 +32,8 @@ function xmldb_logstore_database_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/admin/tool/log/store/standard/db/upgrade.php b/admin/tool/log/store/standard/db/upgrade.php index 1f2d4862554b7..02be2a863e3f2 100644 --- a/admin/tool/log/store/standard/db/upgrade.php +++ b/admin/tool/log/store/standard/db/upgrade.php @@ -32,5 +32,8 @@ function xmldb_logstore_standard_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/admin/tool/mfa/factor/auth/db/upgrade.php b/admin/tool/mfa/factor/auth/db/upgrade.php index ed8a4bd52e54d..2c4e113767e02 100644 --- a/admin/tool/mfa/factor/auth/db/upgrade.php +++ b/admin/tool/mfa/factor/auth/db/upgrade.php @@ -48,5 +48,8 @@ function xmldb_factor_auth_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/admin/tool/mobile/db/upgrade.php b/admin/tool/mobile/db/upgrade.php index f5d3de9dafa69..586565f4e021b 100644 --- a/admin/tool/mobile/db/upgrade.php +++ b/admin/tool/mobile/db/upgrade.php @@ -38,5 +38,8 @@ function xmldb_tool_mobile_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/admin/tool/monitor/db/upgrade.php b/admin/tool/monitor/db/upgrade.php index 6036e73ea5fe8..a965e3d518880 100644 --- a/admin/tool/monitor/db/upgrade.php +++ b/admin/tool/monitor/db/upgrade.php @@ -38,5 +38,8 @@ function xmldb_tool_monitor_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/admin/tool/moodlenet/db/upgrade.php b/admin/tool/moodlenet/db/upgrade.php index 649e3df0f9e84..1c0ec164fa4b5 100644 --- a/admin/tool/moodlenet/db/upgrade.php +++ b/admin/tool/moodlenet/db/upgrade.php @@ -38,5 +38,8 @@ function xmldb_tool_moodlenet_upgrade(int $oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/admin/tool/policy/db/upgrade.php b/admin/tool/policy/db/upgrade.php index dc6e448ba7c74..d509c23eaaa80 100644 --- a/admin/tool/policy/db/upgrade.php +++ b/admin/tool/policy/db/upgrade.php @@ -39,5 +39,8 @@ function xmldb_tool_policy_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/admin/tool/usertours/db/upgrade.php b/admin/tool/usertours/db/upgrade.php index d0b7b12221847..e6aeceace911c 100644 --- a/admin/tool/usertours/db/upgrade.php +++ b/admin/tool/usertours/db/upgrade.php @@ -49,5 +49,8 @@ function xmldb_tool_usertours_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/admin/user/user_bulk_forms.php b/admin/user/user_bulk_forms.php index 1a1604e225a51..62c4814fc7960 100644 --- a/admin/user/user_bulk_forms.php +++ b/admin/user/user_bulk_forms.php @@ -148,6 +148,10 @@ protected function build_actions(): array { public function definition() { $mform =& $this->_form; + // Most bulk actions perform a redirect on selection, so we shouldn't trigger formchange warnings (specifically because + // the user must have _already_ changed the current form by selecting users to perform the action on). + $mform->disable_form_change_checker(); + $mform->addElement('hidden', 'returnurl'); $mform->setType('returnurl', PARAM_LOCALURL); diff --git a/auth/cas/db/upgrade.php b/auth/cas/db/upgrade.php index 41bdd4130578d..d48cae169bc61 100644 --- a/auth/cas/db/upgrade.php +++ b/auth/cas/db/upgrade.php @@ -37,5 +37,8 @@ function xmldb_auth_cas_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/auth/db/db/upgrade.php b/auth/db/db/upgrade.php index eb5b0994cc9d9..4f52f975b5d33 100644 --- a/auth/db/db/upgrade.php +++ b/auth/db/db/upgrade.php @@ -37,5 +37,8 @@ function xmldb_auth_db_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/auth/email/db/upgrade.php b/auth/email/db/upgrade.php index ec4e562460797..c2916f6b7c907 100644 --- a/auth/email/db/upgrade.php +++ b/auth/email/db/upgrade.php @@ -37,5 +37,8 @@ function xmldb_auth_email_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/auth/ldap/db/upgrade.php b/auth/ldap/db/upgrade.php index 3e3e0cf225939..7f3180ca2a88d 100644 --- a/auth/ldap/db/upgrade.php +++ b/auth/ldap/db/upgrade.php @@ -37,5 +37,8 @@ function xmldb_auth_ldap_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/auth/lti/db/upgrade.php b/auth/lti/db/upgrade.php index bce94faf1aac9..963d5b1b5c950 100644 --- a/auth/lti/db/upgrade.php +++ b/auth/lti/db/upgrade.php @@ -38,5 +38,8 @@ function xmldb_auth_lti_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/auth/manual/db/upgrade.php b/auth/manual/db/upgrade.php index 39d64b74cfdb1..800ba266f41bf 100644 --- a/auth/manual/db/upgrade.php +++ b/auth/manual/db/upgrade.php @@ -37,5 +37,8 @@ function xmldb_auth_manual_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/auth/mnet/db/upgrade.php b/auth/mnet/db/upgrade.php index 59430a9c65900..86aa11a7aa211 100644 --- a/auth/mnet/db/upgrade.php +++ b/auth/mnet/db/upgrade.php @@ -37,5 +37,8 @@ function xmldb_auth_mnet_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/auth/none/db/upgrade.php b/auth/none/db/upgrade.php index e5f98fbbfffdf..bc70e9b4dd4c1 100644 --- a/auth/none/db/upgrade.php +++ b/auth/none/db/upgrade.php @@ -37,5 +37,8 @@ function xmldb_auth_none_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/auth/oauth2/db/upgrade.php b/auth/oauth2/db/upgrade.php index 9aec2b1b941d3..784aef02a335a 100644 --- a/auth/oauth2/db/upgrade.php +++ b/auth/oauth2/db/upgrade.php @@ -38,5 +38,8 @@ function xmldb_auth_oauth2_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/auth/shibboleth/db/upgrade.php b/auth/shibboleth/db/upgrade.php index cf9ffd6824a56..3e9110f9921b3 100644 --- a/auth/shibboleth/db/upgrade.php +++ b/auth/shibboleth/db/upgrade.php @@ -37,5 +37,8 @@ function xmldb_auth_shibboleth_upgrade($oldversion) { // Automatically generated Moodle v4.3.0 release upgrade line. // Put any upgrade step following this. + // Automatically generated Moodle v4.4.0 release upgrade line. + // Put any upgrade step following this. + return true; } diff --git a/availability/condition/grade/yui/build/moodle-availability_grade-form/moodle-availability_grade-form-debug.js b/availability/condition/grade/yui/build/moodle-availability_grade-form/moodle-availability_grade-form-debug.js index 518e96f30e738..b09f35eae8fec 100644 --- a/availability/condition/grade/yui/build/moodle-availability_grade-form/moodle-availability_grade-form-debug.js +++ b/availability/condition/grade/yui/build/moodle-availability_grade-form/moodle-availability_grade-form-debug.js @@ -46,13 +46,13 @@ M.availability_grade.form.getNode = function(json) { html += ''; } html += '
' + - '
' + '' + - '
%
%',t=r.Node.create('
'+e+"
"),a.id!==undefined&&t.one("select[name=id] > option[value="+a.id+"]")&&t.one("select[name=id]").set("value",""+a.id),a.min!==undefined&&(t.one("input[name=min]").set("checked",!0),t.one("input[name=minval]").set("value",a.min)),a.max!==undefined&&(t.one("input[name=max]").set("checked",!0),t.one("input[name=maxval]").set("value",a.max)),n=function(a,e){var i=a.ancestor("label").next("label").one("input"),a=a.get("checked");return i.set("disabled",!a),e&&a&&i.focus(),a},t.all("input[type=checkbox]").each(n),M.availability_grade.form.addedEvents||(M.availability_grade.form.addedEvents=!0,(a=r.one(".availability-field")).delegate("change",function(){M.core_availability.form.update()},".availability_grade select[name=id]"),a.delegate("click",function(){n(this,!0),M.core_availability.form.update()},".availability_grade input[type=checkbox]"),a.delegate("valuechange",function(){M.core_availability.form.update()},".availability_grade input[type=text]")),t},M.availability_grade.form.fillValue=function(a,e){a.id=parseInt(e.one("select[name=id]").get("value"),10),e.one("input[name=min]").get("checked")&&(a.min=this.getValue("minval",e)),e.one("input[name=max]").get("checked")&&(a.max=this.getValue("maxval",e))},M.availability_grade.form.getValue=function(a,e){a=e.one("input[name="+a+"]").get("value");return!/^[0-9]+([.,][0-9]+)?$/.test(a)||(e=parseFloat(a.replace(",",".")))<0||100' + grade.name + ''; } html += '

' + - '
' + '' + - '
' + - '
' + '' + - '