Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

* Lessen the course list.

* Fixed pagination problem for orders when selected a course.
  • Loading branch information...
commit 8ef0bbf6c3ed9911243bf04c08255bf79e247378 1 parent da70138
ethem authored
Showing with 3 additions and 6 deletions.
  1. +3 −6 enrol/authorize/locallib.php
View
9 enrol/authorize/locallib.php
@@ -41,11 +41,8 @@ function authorize_print_orders()
);
$sql = "SELECT c.id, c.fullname FROM {$CFG->prefix}course c INNER JOIN {$CFG->prefix}enrol_authorize e ON c.id = e.courseid ";
- if ($CFG->enrol == 'authorize') { // default enrolment plugin
- $sql .= "WHERE (c.enrol IS NULL) OR (c.enrol='') OR (c.enrol = 'authorize') ";
- }
- else {
- $sql .= "WHERE (c.enrol = 'authorize') ";
+ if ($userid > 0) {
+ $sql .= "WHERE (e.userid='$userid') ";
}
$sql .= "ORDER BY c.sortorder, c.fullname";
if ($popupcrs = get_records_sql_menu($sql)) {
@@ -67,7 +64,7 @@ function authorize_print_orders()
$table->define_columns(array('id', 'timecreated', 'userid', 'status', ''));
$table->define_headers(array($authstrs->orderid, $strs->time, $authstrs->nameoncard, $strs->status, $strs->action));
- $table->define_baseurl($baseurl."&status=$status");
+ $table->define_baseurl($baseurl."&status=$status&course=$courseid");
$table->sortable(true, 'id', SORT_DESC);
$table->pageable(true);
Please sign in to comment.
Something went wrong with that request. Please try again.