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

grade_item get_final() returns std_class not grade_grade

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 2.6.6, 2.7.3, 2.8
    • None
    • Gradebook, PHPDoc

    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

            Unassigned Unassigned
            mhughes2k Michael Hughes
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Sujith Haridasan, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Laurent David, Sara Arjona (@sarjona)
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated: