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/import/lib.php

    r136 r1331  
    3838 * If this function is called, we assume that all data collected
    3939 * up to this point is fine and we can go ahead and commit
    40  * @param int courseid - id of the course
    41  * @param string importcode - import batch identifier
    42  * @param feedback print feedback and continue button
     40 * @param int $courseid - ID of the course.
     41 * @param int $importcode - Import batch identifier.
     42 * @param bool $importfeedback - Whether to import feedback as well.
     43 * @param bool $verbose - Print feedback and continue button.
    4344 * @return bool success
    4445 */
     
    114115                    if (!$importfeedback) {
    115116                        $grade->feedback = false; // ignore it
     117                    }
     118                    if ($grade->importonlyfeedback) {
     119                        // False means do not change. See grade_itme::update_final_grade().
     120                        $grade->finalgrade = false;
    116121                    }
    117122                    if (!$gradeitem->update_final_grade($grade->userid, $grade->finalgrade, 'import', $grade->feedback)) {
Note: See TracChangeset for help on using the changeset viewer.