Moodle
  1. Moodle
  2. MDL-25474

Data Module JavaScript Templates Not Working

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical 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.

        Gliffy Diagrams

          Activity

          Hide
          Petr Skoda added a comment -

          Hello,
          should be fixed now, thanks for the report.

          Petr Škoda

          Show
          Petr Skoda added a comment - Hello, should be fixed now, thanks for the report. Petr Škoda

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: