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

Grade to pass throws an error when a decimal point separator is used

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 2.9.6, 3.1
    • Fix Version/s: None
    • Component/s: Workshop
    • Labels:
    • Testing Instructions:
      Hide

      Test 1

      1. Add a Workshop activity to a course.
      2. Edit the activity.
      3. In the 'Submission grade to pass' field enter a valid number and ensure the form saves successfully.
      4. Re-edit the form (change the description but don't touch the 'Submission grade to pass' field) and ensure it saves successfully.

      Test 2

      1. Repeat test 1 using the French language pack. Note - instead of decimal points, commas are used.
      2. Note that step 4 of test 1 fails, as a number using a comma as decimal separator can't be recognized as such.

      Test 3

      1. Repeat tests 1 and 2 for the 'Assessment grade to pass' field
      2. Observe that step 4 of test 1 fails as well.
      Show
      Test 1 Add a Workshop activity to a course. Edit the activity. In the 'Submission grade to pass' field enter a valid number and ensure the form saves successfully. Re-edit the form (change the description but don't touch the 'Submission grade to pass' field) and ensure it saves successfully. Test 2 Repeat test 1 using the French language pack. Note - instead of decimal points, commas are used. Note that step 4 of test 1 fails, as a number using a comma as decimal separator can't be recognized as such. Test 3 Repeat tests 1 and 2 for the 'Assessment grade to pass' field Observe that step 4 of test 1 fails as well.
    • Affected Branches:
      MOODLE_29_STABLE, MOODLE_31_STABLE

      Description

      Similar to MDL-50394, when creating a Workshop activity in French (as the decimal separator is a comma), it becomes impossible to update the activity once created.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              monidu Nicolas Dunand
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: