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

Support multilanguage group names in assign activity

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 3.11.11, 4.0.5
    • 3.9.13, 3.10.10, 3.11.6, 3.11.10, 4.0, 4.0.4, 4.1
    • Assignment
    • Any
    • MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_39_STABLE, MOODLE_400_STABLE, MOODLE_401_STABLE
    • MOODLE_311_STABLE, MOODLE_400_STABLE
    • MDL-74606-master-support-multilang-group-names-in-mod_assign
    • Hide

      In a course in which you possess teacher privileges:

      1. Create groups with names containing multilanguage strings, e.g. "<span class="multilang" lang="de">Abgabegruppe</span> <span class="multilang" lang="en">Submission group</span> A"
      2. Create an assignment activity and configure it as follows:
        • Ensure that file type submission is selected. 
        • Ensure that feedback type "Annotate PDF" is selected.
        • Ensure that submission is available for groups only and that a group is required to make a submission.
      3. Ensure that the course has at least one participant.
        • Ensure that said participant is a member of a valid submission group (i.e. one with a multilanguage string in its name)!
        • Ensure that said participant has submitted an assignment in the previously created activity.
      4. Browse to the activity and click on the "Grade" button.
        • Verify whether the grading window loads properly or throws an Error.

      In a course in which you possess teacher privileges:

      1. Create groups with names containing other HTML strings, e.g. "<script>Submission group</script> <b>A</b>"
      2. Ensure that those HTML tags are filtered out. (e.g. by editing that group again and checking its name)
      Show
      In a course in which you possess teacher privileges: Create groups with names containing multilanguage strings, e.g. " <span class="multilang" lang="de">Abgabegruppe</span> <span class="multilang" lang="en">Submission group</span> A " Create an assignment activity and configure it as follows: Ensure that file type submission is selected.  Ensure that feedback type "Annotate PDF" is selected. Ensure that submission is available for groups only and that a group is required to make a submission. Ensure that the course has at least one participant. Ensure that said participant is a member of a valid submission group (i.e. one with a multilanguage string in its name)! Ensure that said participant has submitted an assignment in the previously created activity. Browse to the activity and click on the "Grade" button. Verify whether the grading window loads properly or throws an Error. In a course in which you possess teacher privileges: Create groups with names containing other HTML strings, e.g. " <script>Submission group</script> <b>A</b> " Ensure that those HTML tags are filtered out. (e.g. by editing that group again and checking its name)

    Description

      When a group is named with a multilanguage string, the assign activity currently throws an exception when trying to grade a group submission. Initializing external_value() with PARAM_TEXT instead of PARAM_NOTAGS resolves this.

      Attachments

        1. image-2023-03-22-09-48-06-452.png
          image-2023-03-22-09-48-06-452.png
          82 kB
        2. master_1_MDL-74606.png
          master_1_MDL-74606.png
          115 kB
        3. master_2_MDL-74606.mp4
          617 kB
        4. v311_1_MDL-74606.png
          v311_1_MDL-74606.png
          106 kB
        5. v311_2_MDL-74606.mp4
          670 kB
        6. v400_1_MDL-74606.png
          v400_1_MDL-74606.png
          111 kB
        7. v400_2_MDL-74606.mp4
          567 kB

        Issue Links

          Activity

            People

              tsbartel Thorsten Bartel
              tsbartel Thorsten Bartel
              Luca Bösch Luca Bösch
              Sara Arjona (@sarjona) Sara Arjona (@sarjona)
              John Edward Pedregosa John Edward Pedregosa
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 hour, 25 minutes
                  1h 25m

                  Clockify

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