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

Multilang tags appear in activity completion tips

    XMLWordPrintable

    Details

      Description

      When using the multilang filter (http://docs.moodle.org/en/Multi-language_content_filter) with activity completion, the span tags used in activity names are present in the tip that appears when hovering over an activity completion checkbox.

      Replication steps:

      1. Log in as admin
      2. Navigate to Site admin > Plugins > Filters > Manage filters
      3. Set the Multi-language content filter to On and allow it to apply to "Content and headings"
      4. Navigate to Site admin > Advanced features
      5. Check "Enable completion tracking" (enablecompletion)
      6. Navigate to a course
      7. Edit the course's settings and in the Student progress section, set Completion tracking to "Enabled,..."
      8. Save settings
      9. Turn editing on
      10. Create an activity such as a quiz.
      11. Add the following as the activity name: <span lang="en" class="multilang">This is a test</span><span lang="de" class="multilang">Dies ist ein Test</span>
      12. In the Activity completion settings section, set the Completion tracking option to "Students can manually mark..."
      13. Save the activity and return to the course
      14. Turn editing off
      15. Hover over the completion checkbox for the newly created quiz

      Expected result: The tip shows "Mark as complete:" followed by the filtered name

      Actual result: The name supplied with tags and both translations appears

        Attachments

          Activity

            People

            Assignee:
            quen Sam Marshall
            Reporter:
            salvetore Michael de Raadt
            Peer reviewer:
            Andrew Davis
            Integrator:
            Eloy Lafuente (stronk7)
            Tester:
            Frédéric Massart
            Participants:
            Component watchers:
            Sam Marshall, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón, cameron1729, David Mudrák (@mudrd8mz), Helen Foster
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              9/Jul/12