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

grade_item get_final() returns std_class not grade_grade

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.6.6, 2.7.3, 2.8
    • Fix Version/s: None
    • Component/s: Gradebook, PHPDoc
    • Labels:
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE, MOODLE_28_STABLE

      Description

      The documentation for get_final() in the grade_item class indicates it should either return a grade_grade item or an array of grade_grade objects.

      It doesn't. It returns an array of the objects returned directly from the database.

      This means you can't use any of the grade_grade methods (such as is_hidden()).

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            mhughes2k Michael Hughes
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated: