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

Random essay questions are broken

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 2.0.1
    • 2.0.2
    • Questions
    • MOODLE_20_STABLE
    • 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

      Attachments

        Activity

          People

            timhunt Tim Hunt
            timhunt Tim Hunt
            Jérôme Mouneyrac Jérôme Mouneyrac
            Safat Shahin, Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            4 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              21/Feb/11