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

Erroneous feedback shown when comma is used as a decimal separator in cloze questions

    Details

    • Type: Bug
    • Status: Development in progress
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1
    • Fix Version/s: STABLE backlog
    • Component/s: Questions
    • Labels:

      Description

      To reproduce:

      1) Set up a quiz with a cloze question with some numerical sub-questions on it. Set question behaviour to "Deferred feedback", and review options to "The attempt" + "Whether correct" + "Marks" everywhere.

      2) Take the quiz and fill the answers with correct values but using commas instead of dots as decimal separators (or use a mix of dot and comma, to see the differences).

      3) Submit the attempt and review the result. You'll see that, although the question is correctly graded, feddback isn't shown correctly when comma is used. Moreover, in that case the feedback box surprisingly shows the sub-question as "not answered". See figure attached.

      This may be a bug in feedback display code, because the numerical value is always well parsed and grade is correct.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Votes:
                6 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated: