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

Quiz module notices and undefined lang strings.

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.0
    • Quiz
    • None
    • MOODLE_20_STABLE
    • MOODLE_20_STABLE

    Description

      Hi Tim,

      if you add a quiz with no questions, then view it as an admin (mod/quiz/edit.php?cmid=<value>) you are given the option to add a random question. If you choose this option and enter the details then submit you will be given the following notice:

      Notice: Undefined property: stdClass::$generalfeedback in /var/www/dev/moodle/mark20/question/type/questiontype.php on line 378

      There is also an issue when editing a random question:

      Help contents string does not exist: [random_help, qtype_random]

      • line 302 of /lib/outputcomponents.php: call to debugging()
      • line 1655 of /lib/outputrenderers.php: call to help_icon->diag_strings()
      • line 1575 of /lib/outputrenderers.php: call to core_renderer->help_icon()
      • line 93 of /question/type/random/questiontype.php: call to core_renderer->heading_with_help()
      • line 326 of /question/question.php: call to random_qtype->display_question_editing_page()

      Regards,

      Mark

      Attachments

        Activity

          People

            tsala Helen Foster
            markn Mark Nelson
            Nobody Nobody
            Tim Hunt, Andrew Lyons, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              24/Nov/10