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:
Michael Hawkins 2019-11-01 14:16:11 +08:00
parent 1743d4a3e9
commit 2e7a16b954
2 changed files with 25 additions and 8 deletions

View file

@ -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();