This commit is contained in:
Dan Poltawski 2014-12-22 13:56:19 +00:00
commit 2da35cd459
2 changed files with 4 additions and 1 deletions

View File

@ -134,6 +134,7 @@ class report_log_renderable implements renderable {
$url = new moodle_url($url);
}
$this->selectedlogreader = $logreader;
$url->param('logreader', $logreader);
// Use site course id, if course is empty.
if (!empty($course) && is_int($course)) {

View File

@ -73,7 +73,9 @@ class report_log_renderer extends plugin_renderer_base {
if (empty($readers)) {
$readers = array(get_string('nologreaderenabled', 'report_log'));
}
$select = new single_select($reportlog->url, 'logreader', $readers, $reportlog->selectedlogreader, null);
$url = fullclone ($reportlog->url);
$url->remove_params(array('logreader'));
$select = new single_select($url, 'logreader', $readers, $reportlog->selectedlogreader, null);
$select->set_label(get_string('selectlogreader', 'report_log'));
echo $this->output->render($select);
}