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

forum_post_emaildigestbasic_htmlemail.mustache shows an error in the template library.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reopened
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: Forum, Libraries
    • Labels:
    • Testing Instructions:
      Hide
      1. Go to [ Site administration  ► Development  ► Template library] and click on the "mod_forum/forum_post_emaildigestbasic_htmlemail" link.
      2. You should not see a popup with an error. Instead you should see the template in the example.
      Show
      Go to [ Site administration  ► Development  ► Template library] and click on the "mod_forum/forum_post_emaildigestbasic_htmlemail" link. You should not see a popup with an error. Instead you should see the template in the example.
    • Affected Branches:
      MOODLE_31_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      wip-MDL-53582-master

      Description

      When you click on the preview of forum_post_emaildigestbasic_htmlemail.mustache you get an error pop up saying Unexpected token _

      Seems to be a problem with using \ when escaping the double quotes.

      I've provided a patch.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              abgreeve Adrian Greeve
              Participants:
              Component watchers:
              Andrew Lyons, Dongsheng Cai, Huong Nguyen, Jun Pataleta, Michael Hawkins, Shamim Rezaie, Simey Lameze, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: