mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 11:26:41 +02:00
MDL-66297 mod_forum: Prepared export to handle URL filters
Added the ability for discussion IDs and from/to timestamps to be passed in via URL (to match filters available in the summary report, which will link to the export). Also fixed a bug where "all users" would fail as an optional array param.
This commit is contained in:
parent
1743d4a3e9
commit
2e7a16b954
2 changed files with 25 additions and 8 deletions
|
@ -66,7 +66,7 @@ class export_form extends \moodleform {
|
|||
return $OUTPUT->render_from_template('mod_forum/form-user-selector-suggestion', $useroptiondata);
|
||||
}
|
||||
];
|
||||
$mform->addElement('autocomplete', 'userids', get_string('users'), [], $options);
|
||||
$mform->addElement('autocomplete', 'useridsselected', get_string('users'), [], $options);
|
||||
|
||||
// Get the discussions on this forum.
|
||||
$vaultfactory = \mod_forum\local\container::get_vault_factory();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue