Diff of /contrib/plugins/grade/report/stats/lib.php
Parent Directory
|
Revision Log
|
Patch
|
By dservos:
CONTRIB-496
Removed a temporary work around for a bug that has been fixed in the moodle 2.X core.
|
| 134 |
if(is_callable(array($this, 'setup_groups'))) { |
if(is_callable(array($this, 'setup_groups'))) { |
| 135 |
$this->setup_groups(); |
$this->setup_groups(); |
| 136 |
} else { |
} else { |
| 137 |
$this->local_setup_groups(); |
$this->setup_groups(); |
| 138 |
} |
} |
| 139 |
} |
} |
| 140 |
|
|
| 186 |
public function process_data($data){} |
public function process_data($data){} |
| 187 |
public function process_action($target, $action){} |
public function process_action($target, $action){} |
| 188 |
|
|
|
/// Tempary fix intill issue MDL-15253 is fixed |
|
|
private function local_setup_groups() { |
|
|
global $CFG; |
|
|
|
|
|
/// find out current groups mode |
|
|
$this->group_selector = groups_print_course_menu($this->course, $this->pbarurl, true); |
|
|
$this->currentgroup = groups_get_course_group($this->course); |
|
|
|
|
|
if ($this->currentgroup) { |
|
|
$this->groupsql = " LEFT JOIN {groups_members} gm ON gm.userid = u.id "; |
|
|
$this->groupwheresql = " AND gm.groupid = ? "; |
|
|
$this->groupwheresql_params = array($this->currentgroup); |
|
|
} |
|
|
} |
|
|
|
|
| 189 |
/** |
/** |
| 190 |
* Based on load user function from grader report. |
* Based on load user function from grader report. |
| 191 |
* Pulls out the userids of the users to be used in the stats. |
* Pulls out the userids of the users to be used in the stats. |
|
|
Legend:
| Removed from v.1.3 |
|
| changed lines |
| |
Added in v.1.4 |
|
|