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

Random essay questions are broken

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.2
    • Component/s: Questions
    • Labels:
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      Steps to reproduce:

      1. Create a new quiz.
      2. Create a new category "Essay questions".
      3. Create two essay questions in that category.
      4. Add one random question to the quiz, picking from that category.
      5. Preview the quiz.
      6. Type an answer into the HTML editor that includes pressing ENTER.
      7. Click next.

      Actual result:

      Can not find wrapped question random30-
      asdf

      asdf

      Notice: Trying to get property of non-object in /Users/tim/Documents/workspace/moodle_head/question/type/random/questiontype.php on line 249
      Wrapped state missing

      Notice: Trying to get property of non-object in /Users/tim/Documents/workspace/moodle_head/question/type/random/questiontype.php on line 264

      Notice: Undefined index: in /Users/tim/Documents/workspace/moodle_head/question/type/random/questiontype.php on line 264

      Fatal error: Call to a member function get_question_options() on a non-object in /Users/tim/Documents/workspace/moodle_head/question/type/random/questiontype.php on line 265

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                4 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  21/Feb/11