Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-4374

journal_grades should return NULL if no grade

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • None
    • 1.9.19
    • Module: Journal
    • None
    • All
    • MOODLE_19_STABLE

      If a journal has Grades set to No grades then the function journal_grades in http://moodle.cvs.sourceforge.net/moodle/moodle/mod/journal/lib.php should return NULL or false. Currently it returns an object with maxgrade set to 0 and grade set to NULL. This has the unwanted effect of making it show up in the gradebook.

      Thus the lines 237 and 238 should be replaced by the single line

      return NULL;

            dougiamas Martin Dougiamas
            delius Gustav W Delius
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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