MDL-84213 reportbuilder: add course "do not force" field options.
authorPaul Holden <paulh@moodle.com>
Tue, 14 Jan 2025 21:06:54 +0000 (21:06 +0000)
committerPaul Holden <paulh@moodle.com>
Fri, 31 Jan 2025 09:45:16 +0000 (09:45 +0000)
commitacc654e8ce36a11bc4e8eec052165ec2238e6071
treee37d2ec73e2747b74b1d348e4ae8babb81938d34
parent07881a57720b465b76cf1957ab3fbfc754461f47
MDL-84213 reportbuilder: add course "do not force" field options.

Where course entity select elements theme, language and calendar are
defined we should prepend with "Do not force" in order to match the
interface when editing the same fields.

The select filter has been updated to ensure it supports empty values
when switched to simplified version (a0ef4bb8) as well as improving
validation to ensure only present options can be used for filtering.
14 files changed:
.upgradenotes/MDL-82913-2025011510021468.yml [new file with mode: 0644]
.upgradenotes/MDL-84213-2025011422342259.yml [new file with mode: 0644]
admin/roles/tests/reportbuilder/datasource/roles_test.php
cohort/tests/reportbuilder/datasource/cohorts_test.php
competency/tests/reportbuilder/datasource/competencies_test.php
course/tests/reportbuilder/datasource/categories_test.php
course/tests/reportbuilder/datasource/courses_test.php
reportbuilder/classes/local/entities/course.php
reportbuilder/classes/local/entities/user.php
reportbuilder/classes/local/filters/select.php
reportbuilder/tests/local/filters/select_test.php
reportbuilder/tests/local/helpers/custom_fields_test.php
reportbuilder/tests/local/helpers/user_profile_fields_test.php
user/tests/reportbuilder/datasource/users_test.php