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

Data Module JavaScript Templates Not Working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0.1
    • Labels:
      None
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE

      Description

      It is not possible to use JavaScript templates in the data module because they rely on using $PAGE->requires->js() to include the file js.php. There is a specific check in lib/javascript.php that prohibits the use of any file not ending in '.js', so this doesn't work.

        Attachments

          Activity

            People

            Assignee:
            skodak Petr Skoda
            Reporter:
            anthonyforth Anthony Forth
            Tester:
            Nobody
            Participants:
            Component watchers:
            Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              25/Dec/10