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

Numerical Questions: Not showing properly when reviewing a quiz

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.1
    • Fix Version/s: None
    • Component/s: Quiz
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_11_STABLE

      Description

      When a numerical question is answered, it it contains the , character (decimal separator in a lot of coutries), the quiz seems to be correctly evaluated, and the response is stored ok in DB, but when you try to review the quiz, the response is truncated from the , decimal separator to the right.

      I've a numerical quiz in demo103. I've make two attempts to the quiz, one with the . separator and another with the , separator (PI question).

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            dougiamas Martin Dougiamas added a comment -

            From Eloy Lafuente (stronk7 at moodle.org) Tuesday, 22 July 2003, 01:12 AM:

            The problem seems to be the explode() call in line 337 of mod/quiz/lib.php.

            I'm going to avoid the explode in numerical questions (and in shortanswer questions too !!).

            Ciao.

            From Eloy Lafuente (stronk7 at moodle.org) Tuesday, 22 July 2003, 01:27 AM:

            In CVS now. Seems to work fine with NUMERICAL and SHORTANSWER question containing the , character. Closed. Ciao.

            Show
            dougiamas Martin Dougiamas added a comment - From Eloy Lafuente (stronk7 at moodle.org) Tuesday, 22 July 2003, 01:12 AM: The problem seems to be the explode() call in line 337 of mod/quiz/lib.php. I'm going to avoid the explode in numerical questions (and in shortanswer questions too !!). Ciao. From Eloy Lafuente (stronk7 at moodle.org) Tuesday, 22 July 2003, 01:27 AM: In CVS now. Seems to work fine with NUMERICAL and SHORTANSWER question containing the , character. Closed. Ciao.
            Hide
            mblake Michael Blake added a comment -

            assign to a valid user

            Show
            mblake Michael Blake added a comment - assign to a valid user

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: