mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-79510 report_configlog : implement filtering by plugin.
This commit is contained in:
parent
c6e727732a
commit
634d1a3dcd
@ -172,6 +172,16 @@ class config_change extends base {
|
||||
date::DATE_CURRENT,
|
||||
]);
|
||||
|
||||
// Plugin filter.
|
||||
$filters[] = (new filter(
|
||||
text::class,
|
||||
'plugin',
|
||||
new lang_string('plugin', 'report_configlog'),
|
||||
$this->get_entity_name(),
|
||||
"COALESCE({$tablealias}.plugin, 'core')"
|
||||
))
|
||||
->add_joins($this->get_joins());
|
||||
|
||||
// Setting filter.
|
||||
$filters[] = (new filter(
|
||||
text::class,
|
||||
|
@ -103,6 +103,7 @@ class config_changes extends system_report {
|
||||
*/
|
||||
protected function add_filters(): void {
|
||||
$filters = [
|
||||
'config_change:plugin',
|
||||
'config_change:setting',
|
||||
'config_change:value',
|
||||
'config_change:oldvalue',
|
||||
|
@ -37,6 +37,7 @@ Feature: In a report, admin can see configuration changes
|
||||
And I should not see "<excluded>" in the "reportbuilder-table" "table"
|
||||
Examples:
|
||||
| field | search | plugin | setting | value | excluded |
|
||||
| Plugin | folder | folder | maxsizetodownload | 2048 | quiz |
|
||||
| Setting | initialnumfeedbacks | quiz | initialnumfeedbacks | 5 | maxsizetodownload |
|
||||
| Setting | maxsizetodownload | folder | maxsizetodownload | 2048 | initialnumfeedbacks |
|
||||
| New value | Perth | core | defaultcity | Perth | maxsizetodownload |
|
||||
|
Loading…
x
Reference in New Issue
Block a user