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

Question idnumber field is set on the question definition class, but not declared

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.6.4
    • 3.6.3
    • Questions
    • MOODLE_36_STABLE
    • MOODLE_36_STABLE
    • Hide

      This change does not affect Moodle functionality. It is just for developers. If you really want to test:

      1. You need a Moodle check-out open in an IDE.
      2. Open question/preview.php
      3. After the $question = question_bank::load_question($id); line (which is line 46)
      4. type $question->, then whatever key shortcut triggers auto-compelte.
      5. Verify that 'idnumber' is one of the auto-completes offered.
      Show
      This change does not affect Moodle functionality. It is just for developers. If you really want to test: You need a Moodle check-out open in an IDE. Open question/preview.php After the $question = question_bank::load_question($id); line (which is line 46) type $question->, then whatever key shortcut triggers auto-compelte. Verify that 'idnumber' is one of the auto-completes offered.

      MDL-62708 added an idnumber field to questions, and set that field on question_definition when it is initialised.

      However, the declaration of that field was not added to the question_definition class, so it does not auto-complete. I will fix that.

            timhunt Tim Hunt
            timhunt Tim Hunt
            Mahmoud Kassaei Mahmoud Kassaei
            Adrian Greeve Adrian Greeve
            David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 hour, 1 minute
                1h 1m

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