Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-48008

Grade import gives no useful information when an error occurs:

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • 2.6.6, 2.7.3
    • 2.6.5, 2.7.2
    • Gradebook
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • MOODLE_26_STABLE, MOODLE_27_STABLE
    • Hide

      Tested by MDL-48010 as the code was submitted in one branch.

      Show
      Tested by MDL-48010 as the code was submitted in one branch.

      In grade/import/xml/import.php

      $error = '';
      $importcode = import_xml_grades($text, $course, $error);
       
      if ($importcode !== false) {
          // ...
      } else {
          print_error('error', 'gradeimport_xml');
      }
      

      Well, you get some marks for effort. The $error variable is initialised, and import_xml_grades even returns useful information using that argument (passed by reference).

      However, that useful information is not displayed!

            timhunt Tim Hunt
            timhunt Tim Hunt
            Damyon Wiese Damyon Wiese
            Andrew Lyons Andrew Lyons
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.