diff --git a/index.php b/index.php index 30920d0..f966184 100644 --- a/index.php +++ b/index.php @@ -238,6 +238,23 @@ $link = $CFG->wwwroot.'/report/ilbenrol/?course='.$course->id; if (strlen($sort)) { $link .= '&sort='.$sort; } + +// Add filterform fields + +if ($formdata) { + $formvar = ''; + foreach ($formdata as $key=>$value) { + if (is_array($value)) { + foreach ($value as $k=>$v) { + $formvar .= "&{$key}[{$k}]={$v}"; + } + } else { + $formvar .= "&{$key}={$value}"; + } + } + $link .= $formvar; +} + $link .= '&start='; // Build the the page by Initial bar