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

Course index activity items do not pass filters (like multilang)

    XMLWordPrintable

    Details

    • Affected Branches:
      MOODLE_400_STABLE
    • Fixed Branches:
      MOODLE_400_STABLE
    • Pull Master Branch:
      MDL-72567-master
    • Testing Instructions:
      Hide

      Coveret by behat test.

       

      Manual test

      1. Test in Boost.
      2. Enable multilang filter for content and headers.
      3. As a teacher, in a course, add an assignment, call it <span lang="en" class="multilang">Assignment</span><span lang="de" class="multilang">Aufgabe</span>.
      4. Add a document, call it <span lang="en" class="multilang">Document</span><span lang="de" class="multilang">Dokument</span>
      5. View the course index.
      6. Verify the course index does not say AssignmentAufgabe and DocumentDokument but the english term only if the language is set to english.
      Show
      Coveret by behat test.   Manual test Test in Boost. Enable multilang filter for content and headers. As a teacher, in a course, add an assignment, call it <span lang="en" class="multilang">Assignment</span><span lang="de" class="multilang">Aufgabe</span>. Add a document, call it <span lang="en" class="multilang">Document</span><span lang="de" class="multilang">Dokument</span> View the course index. Verify the course index does not say AssignmentAufgabe and DocumentDokument but the english term only if the language is set to english.
    • Sprint:
      Moppies Kanban

      Description

      If you have a multilang document or activity title, course index does not apply the filter when displaying.

      To reproduce:

      1. Enable multilang filter for content and headers
      2. Add an assignment, call it <span lang="en" class="multilang">Assignment</span><span lang="de" class="multilang">Aufgabe</span>
      3. Add a document, call it <span lang="en" class="multilang">Document</span><span lang="de" class="multilang">Dokument</span>
      4. View the course index.

      WHAT YOU EXPECTED
      Multilang filter is applied for the course index entries

      WHAT ACTUALLY HAPPENS
      Multilang filter is not applied for the course index entries

      For the fix: it would be great if coverage by PHPUnit or Behat was introduced for this.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              lucaboesch Luca Bösch
              Reporter:
              lucaboesch Luca Bösch
              Peer reviewer:
              Carlos Escobedo Carlos Escobedo
              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:
              0 Vote for this issue
              Watchers:
              4 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 - 6 hours, 16 minutes
                  6h 16m