Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-2266

Cannot get quiz feedback if the grade contains decimals with comma

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.2
    • Fix Version/s: 3.4.0
    • Component/s: Quiz add-on
    • Labels:
    • Testing Instructions:
      Hide
      1. Login in a Moodle site as admin.
      2. If it's not installed already, install the Spanish language (ES).
      3. Create a quiz. When creating it, in the "Overall feedback" section, add a couple of feedbacks (e.g. one for 100%-50% and another one for 50%-0%).
      4. Add 3 questions to the quiz, with 1 point per question. 
      5. Now login in web as a student. Go to Preferences > Preferred language and select Spanish.
      6. Now login in the app with that student and answer the quiz. Make sure to answer only 1 or 2 questions so the grade has decimals.
      7. Once the attempt is finished, go to the quiz entry page and check that you can see the overall feedback for your grade.
      Show
      Login in a Moodle site as admin. If it's not installed already, install the Spanish language (ES). Create a quiz. When creating it, in the "Overall feedback" section, add a couple of feedbacks (e.g. one for 100%-50% and another one for 50%-0%). Add 3 questions to the quiz, with 1 point per question.  Now login in web as a student. Go to Preferences > Preferred language and select Spanish. Now login in the app with that student and answer the quiz. Make sure to answer only 1 or 2 questions so the grade has decimals. Once the attempt is finished, go to the quiz entry page and check that you can see the overall feedback for your grade.
    • Affected Branches:
      MOODLE_33_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE
    • Sprint:
      Moodle Mobile 3.4.0

      Description

      If a quiz grade is configured to have a comma as a decimal separator, opening the quiz after finishing an attempt will always display an "Invalid parameter" error. The reason is that the app sends the grade with that separator (","), and Moodle expects a dot as the separator.

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            dpalou Dani Palou
            Peer reviewer:
            Pau Ferrer
            Integrator:
            Juan Leyva
            Tester:
            Berta Maroto
            Participants:
            Component watchers:
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              30/Nov/17