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

When unenrolling from a course with self enrolment, the course name does not pass filters.

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE, MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_310_STABLE, MOODLE_311_STABLE
    • Pull 3.10 Branch:
      MDL-72590-310
    • Pull 3.11 Branch:
      MDL-72590-311
    • Pull Master Branch:
      MDL-72590-master
    • Testing Instructions:
      Hide

      Covered by a Behat test.

       

      Manual tests:

      1. Test in Boost and Classic.
      2. Enable multilang filter for content and headers.
      3. As a teacher, create a course and give it Course full name '<span lang="en" class="multilang">Course</span><span lang="it" class="multilang">Corso</span> 1'.
      4. Make the self enrolment method in the course visible.
      5. As a student, enrol to the course.
      6. As a student, unenrol from the course.
      7. Verify the message does not say 'You are unenrolled from the course "CourseCorso 1"' but 'You are unenrolled from the course "Course 1"'.
      Show
      Covered by a Behat test.   Manual tests: Test in Boost and Classic. Enable multilang filter for content and headers. As a teacher, create a course and give it Course full name '<span lang="en" class="multilang">Course</span><span lang="it" class="multilang">Corso</span> 1'. Make the self enrolment method in the course visible. As a student, enrol to the course. As a student, unenrol from the course. Verify the message does not say 'You are unenrolled from the course "CourseCorso 1"' but 'You are unenrolled from the course "Course 1"'.

      Description

      When unenrolling from a course with self enrolment, the course name does not pass filters.


      (This was originally reported here https://github.com/iarenaza/moodle-filter_multilang2/issues/26 by chiaravicere.)

      WHAT YOU EXPECTED

      The confirm message does look good.

      WHAT ACTUALLY HAPPENS
      The confirm message does look weird.

        Attachments

          Activity

            People

            Assignee:
            lucaboesch Luca Bösch
            Reporter:
            lucaboesch Luca Bösch
            Peer reviewer:
            Simey Lameze Simey Lameze
            Integrator:
            Sara Arjona (@sarjona) Sara Arjona (@sarjona)
            Tester:
            CiBoT CiBoT
            Participants:
            Component watchers:
            Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
            Votes:
            2 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              8/Nov/21

                Time Tracking

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