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

Possible for tooltip in Recently accessed items block to be broken

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 4.5.4, 5.0
    • Blocks
    • None
    • MOODLE_405_STABLE, MOODLE_500_STABLE

      The following line in blocks/recentlyaccesseditems/templates/view-cards.mustache

      <a href="{{{viewurl}}}" title="{{{name}}}">

      can break the tooltip.

      Using triple bracing to display the title attribute displays the raw (unescaped) activity name and this causes issues if the activity name contains quotes (").

       

      For example: The activity name is A1: "ABC"

      The tooltip on hover is just A1: instead of A1: "ABC"

      The HTML looks like this:

       

      Another issue with the unescaped content has already been reported in MDL-79994.

            Unassigned Unassigned
            rajneel.totaram@moodle.com Rajneel Totaram
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

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