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

Quiz module notices and undefined lang strings.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Quiz
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      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

            • Assignee:
              tsala Helen Foster
              Reporter:
              markn Mark Nelson
              Tester:
              Nobody
              Participants:
              Component watchers:
              Tim Hunt, Andrew Nicols, Mathew May, Michael Hawkins, Shamim Rezaie, Simey Lameze
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                24/Nov/10