Moodle
  1. Moodle
  2. MDL-561

Numerical Questions: Not showing properly when reviewing a quiz

    Details

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

      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).

        Activity

        Hide
        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
        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
        Michael Blake added a comment -

        assign to a valid user

        Show
        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: