Ignore:
Timestamp:
May 2, 2016, 12:09:23 PM (3 years ago)
Author:
jrpelegrina
Message:

Updated to moodle 3.0.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • moodle/trunk/fuentes/grade/report/history/classes/output/tablelog.php

    r136 r1331  
    414414        $sql =  "SELECT $select
    415415                   FROM {grade_grades_history} ggh
    416               LEFT JOIN {grade_items} gi ON gi.id = ggh.itemid
     416                  JOIN {grade_items} gi ON gi.id = ggh.itemid
    417417                   JOIN {user} u ON u.id = ggh.userid
    418418              LEFT JOIN {user} ug ON ug.id = ggh.usermodified
     
    468468        $total = $DB->count_records_sql($countsql, $countparams);
    469469        $this->pagesize($pagesize, $total);
    470         $histories = $DB->get_records_sql($sql, $params, $this->pagesize * $this->page, $this->pagesize);
     470        if ($this->is_downloading()) {
     471            $histories = $DB->get_records_sql($sql, $params);
     472        } else {
     473            $histories = $DB->get_records_sql($sql, $params, $this->pagesize * $this->page, $this->pagesize);
     474        }
    471475        foreach ($histories as $history) {
    472476            $this->rawdata[] = $history;
Note: See TracChangeset for help on using the changeset viewer.