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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.6.3
    • Fix Version/s: 3.6.4
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      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.
    • Affected Branches:
      MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_36_STABLE
    • Pull 3.6 Branch:
    • Pull Master Branch:

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/May/19

                  Time Tracking

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