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

"Activity names auto-linking" filter and activity name like "-" (hyphen) breaks course content visualization

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Waiting for peer review
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.5.6, 3.6.4, 3.7
    • Fix Version/s: None
    • Component/s: Filters
    • Labels:

      Description

      Steps to reproduce

      • Make sure "Activity names auto-linking" filter is active at site and course level.
      • In a course, create an Assignment and set name to "-".
      • In the same course create a label with some content and return to course.
      • You should see label's content broken.

      What actually happens

      • "Activity names auto-linking": on.
      • Assignment's name "-".
      • Label's original content:  "This is a label".
      • Wrong visualization of label's content: "<%1-%0%><%2%1%>This is a label<%3%2%><%4%3%><%5%-4%>".
        • Each of the hyphens is a link pointing to the task named "-".
        • This behavior affects the descriptions shown in the course of each resource or activity.
        • If you switch off "Activity names auto-linking", content turns readable.

      Expected

      • "Activity names auto-linking": on.
      • Assignment's name "-".
      • Label's original content:  "This is a label".
      • Correct visualization of label's content: "This is a label".

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pholden Paul Holden
                Reporter:
                jmabreu Juan Miguel
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: