Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-38284 META: Improve core JavaScript processes, etc
  3. MDL-38756

YUI_config uses jsrev before it is set during install

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: Minor Minor
    • 2.5
    • 2.5
    • JavaScript
    • MOODLE_25_STABLE
    • MOODLE_25_STABLE
    • Hide

      Testing difficulty: medium (requires 2.5dev installation)

      Install a fresh new site using the installation method of existing config.php + no DB + no moodledata:

      • Ensure that jsrev is not set in your config.php, and that:

        $CFG->debug = (E_ALL | E_STRICT);
        $CFG->debugdisplay = true;
        

      • dump your database and moodledata
      • reinstall
      • On the first page of the installation:
        • Confirm that no errors were shown about missing vars

      (you may want to confirm that you do get them without the patch too)

      Show
      Testing difficulty: medium (requires 2.5dev installation) Install a fresh new site using the installation method of existing config.php + no DB + no moodledata: Ensure that jsrev is not set in your config.php, and that: $CFG->debug = (E_ALL | E_STRICT); $CFG->debugdisplay = true; dump your database and moodledata reinstall On the first page of the installation: Confirm that no errors were shown about missing vars (you may want to confirm that you do get them without the patch too)

      As reported by David Mudrak:

      During install, jsrev is not yet set, and should really not attempt to use the cached copy of the metadata.

      As part of the installation, jsrev is then set to the current timestamp.

      We should therefore check whether jsrev is -1, OR is not set at all.

            dobedobedoh Andrew Lyons
            dobedobedoh Andrew Lyons
            David Mudrák (@mudrd8mz) David Mudrák (@mudrd8mz)
            Eloy Lafuente (stronk7) Eloy Lafuente (stronk7)
            Ankit Agarwal Ankit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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