Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-31167 PHP strict META
  3. MDL-33577

Strict standards in multianswer question type

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.3
    • Component/s: Questions
    • Labels:
    • Testing Instructions:
      Hide
      1. Create a quiz with a multianswer question (cloze). with e.g. text:

        Match the following cities with the correct state:
        * San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
        * Tucson: {1:MULTICHOICE:California#Wrong~%100%Arizona#OK}
        * Los Angeles: {1:MULTICHOICE:=California#OK~Arizona#Wrong}
        * Phoenix: {1:MULTICHOICE:%0%California#Wrong~=Arizona#OK}
        The capital of France is {1:SHORTANSWER:%100%Paris#Congratulations!
        ~%50%Marseille#No, that is the second largest city in France (after
        Paris).~*#Wrong answer. The capital of France is Paris, of course.}.

      2. Preview the quiz in developer debug mode. Ensure there are not errors.
      Show
      Create a quiz with a multianswer question (cloze). with e.g. text: Match the following cities with the correct state: * San Francisco: {1:MULTICHOICE:=California#OK~Arizona#Wrong} * Tucson: {1:MULTICHOICE:California#Wrong~%100%Arizona#OK} * Los Angeles: {1:MULTICHOICE:=California#OK~Arizona#Wrong} * Phoenix: {1:MULTICHOICE:%0%California#Wrong~=Arizona#OK} The capital of France is {1:SHORTANSWER:%100%Paris#Congratulations! ~%50%Marseille#No, that is the second largest city in France (after Paris).~*#Wrong answer. The capital of France is Paris, of course.}. Preview the quiz in developer debug mode. Ensure there are not errors.
    • Affected Branches:
      MOODLE_23_STABLE
    • Fixed Branches:
      MOODLE_23_STABLE
    • Pull from Repository:
    • Pull Master Branch:

      Description

      When viewing a quiz containing a multianswer question.

      Strict Standards: Only variables should be passed by reference in /home/fred/www/repositories/testing_master/moodle/question/type/multianswer/renderer.php on line 282

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              timhunt Tim Hunt
              Reporter:
              fred Frédéric Massart
              Integrator:
              Dan Poltawski Dan Poltawski
              Tester:
              Dan Poltawski Dan Poltawski
              Participants:
              Component watchers:
              Tim Hunt, Andrew Lyons, Dongsheng Cai, 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:
                Fix Release Date:
                25/Jun/12