mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
Merge branch 'MDL-48445-master' of https://github.com/jmarshall-netspot/moodle
This commit is contained in:
commit
2da35cd459
@ -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)) {
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user