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

Decimal in manual grading are truncated when using comma

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.1.6, 2.2.3
    • 2.2.1
    • Questions, Quiz
    • Windows 2008 Server
    • MySQL
    • MOODLE_22_STABLE
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • Hide

      Use point instead of comma and be very careful when editing existing answer.

      Show
      Use point instead of comma and be very careful when editing existing answer.
    • Hide

      Prerequiste: a weekly course with a student and a teacher. Moodle site set to use lang en.
      1- Create a quiz. Make sure "Decimal places in grades" is not zero.
      2- Add at least one essay question to the quiz, set it to be marked out of 50.
      3- With a student account, complete the quiz and submit it
      4- With a teacher account, go to the quiz > results > manual grading
      5- Click the Grade link for one of the essay questions.
      6- On the Mark field, you should see a blank value
      7- Enter the "25,75" value in the Mark field and click Save
      8- Go back to the the front page of the manual grading report, and click "Update grades". Make sure the grade is displayed as 25.75.
      9- Now save the new grade "35.75" (with a point)
      10- Verify that this grade is also saved and displayed correctly.

      11- Now switch your language to fr (or any other languages that uses , as a decimal. Repeat steps 4 - 10. The only difference is that Moodle should output grades using , instead of .

      Show
      Prerequiste: a weekly course with a student and a teacher. Moodle site set to use lang en. 1- Create a quiz. Make sure "Decimal places in grades" is not zero. 2- Add at least one essay question to the quiz, set it to be marked out of 50. 3- With a student account, complete the quiz and submit it 4- With a teacher account, go to the quiz > results > manual grading 5- Click the Grade link for one of the essay questions. 6- On the Mark field, you should see a blank value 7- Enter the "25,75" value in the Mark field and click Save 8- Go back to the the front page of the manual grading report, and click "Update grades". Make sure the grade is displayed as 25.75. 9- Now save the new grade "35.75" (with a point) 10- Verify that this grade is also saved and displayed correctly. 11- Now switch your language to fr (or any other languages that uses , as a decimal. Repeat steps 4 - 10. The only difference is that Moodle should output grades using , instead of .

      Using "fr" language pack, when we manually grades an answer, every decimals are truncated if we use the comma. Using the a point instead keep the decimal value correctly. However, once saved using a point, value is then print on screen with a comma, so saving it as is for a second time truncate the decimals again.

            timhunt Tim Hunt
            jackdaniels JD
            Pierre Pichet Pierre Pichet
            Sam Hemelryk Sam Hemelryk
            Michael de Raadt Michael de Raadt
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.