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

Lesson: use the right decimal separator in numerical question's feedback page

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 4.0.6, 4.1.1
    • 4.0.8, 4.1.3
    • Lesson
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_400_STABLE, MOODLE_401_STABLE
    • MDL-77550-400
    • MDL-77550-401
    • MDL-77550-master
    • Hide
      1. In a course, create a Lesson with the following settings:
        1. "Flow control > Provide option to try a question again" set it to "Yes".
        2. "Flow control > Maximum number of attempts per question" set it to "Unlimited".
        3. "Grade > Re-takes allowed" set it to Yes.
      2. Add a new question page with type Numerical. Make sure that the right answer has decimals (e.g. "1.1") and add some text in the "Response" of the right answer. 
      3. Change your language to one that uses "," as decimal separator (e.g. German).
      4. Go to the lesson initial page, you should see the question you just created.
      5. Enter the correct answer and submit it.
      6. In the page that displays the answer and the feedback, check that the value you entered uses "," instead of "." as decimal separator.

      Show
      In a course, create a Lesson with the following settings: "Flow control > Provide option to try a question again" set it to "Yes". "Flow control > Maximum number of attempts per question" set it to "Unlimited". "Grade > Re-takes allowed" set it to Yes. Add a new question page with type Numerical. Make sure that the right answer has decimals (e.g. "1.1") and add some text in the "Response" of the right answer.  Change your language to one that uses "," as decimal separator (e.g. German). Go to the lesson initial page, you should see the question you just created. Enter the correct answer and submit it. In the page that displays the answer and the feedback,  check that the value you entered uses "," instead of "." as decimal separator.

    Description

      In MDL-40227 the way decimal separators are handled in lesson was improved. However, the value is not formatted when it's displayed in the feedback page right after submitting an answer.

      How to reproduce:

      1. In a course, create a Lesson with the following settings:
        1. "Flow control > Provide option to try a question again" set it to "Yes".
        2. "Flow control > Maximum number of attempts per question" set it to "Unlimited".
        3. "Grade > Re-takes allowed" set it to Yes.
      2. Add a new question page with type Numerical. Make sure that the right answer has decimals (e.g. "1.1") and add some text in the "Response" of the right answer. 
      3. Change your language to one that uses "," as decimal separator (e.g. German).
      4. Go to the lesson entry page, you should see the question you just created.
      5. Enter the right answer and submit it.
      6. In the page that displays the answer and the feedback, check that the value you entered uses "." instead of "," as decimal separator.

      Attachments

        1. (I) Passed -- (400)MDL-77550.png
          (I) Passed -- (400)MDL-77550.png
          69 kB
        2. (I) Passed -- (401)MDL-77550.png
          (I) Passed -- (401)MDL-77550.png
          74 kB
        3. (I) Passed -- (Master)MDL-77550.png
          (I) Passed -- (Master)MDL-77550.png
          77 kB
        4. screenshot-1.png
          screenshot-1.png
          104 kB
        5. screenshot-2.png
          screenshot-2.png
          105 kB
        6. screenshot-3.png
          screenshot-3.png
          79 kB
        7. screenshot-4.png
          screenshot-4.png
          84 kB

        Issue Links

          Activity

            People

              dpalou Dani Palou
              dpalou Dani Palou
              Juan Leyva Juan Leyva
              Andrew Lyons Andrew Lyons
              Kim Jared Lucas Kim Jared Lucas
              Ilya Tregubov, Kevin Percy, Mathew May, Mihail Geshoski, Shamim Rezaie
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                24/Apr/23

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours, 20 minutes
                  2h 20m