Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-3416

Bug in hotpot upgrade script 1.6.1 -> 1.6.2 with MetaColumns() method

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • None
    • 1.9.11
    • Module: HotPot
    • None
    • Moodle 1.6.2, PostgreSQL 8.1, platform independent
    • PostgreSQL
    • MOODLE_19_STABLE

      During an upgrade from 1.6.1+ to 1.6.2 I had a critical bug in hotpot module saying something about MetaColumns() as a non-object member.
      Here is the patch:

      Index: mod/hotpot/db/postgres7.php
      ===================================================================
      RCS file: /cvsroot/moodle/moodle/mod/hotpot/db/postgres7.php,v
      retrieving revision 1.16.2.3
      diff -c -r1.16.2.3 postgres7.php

          • mod/hotpot/db/postgres7.php 13 Sep 2006 08:26:16 -0000 1.16.2.3
          • mod/hotpot/db/postgres7.php 13 Sep 2006 11:56:13 -0000
            ***************
          • 1,6 ****
            <?PHP
            function hotpot_upgrade($oldversion) {
            ! global $CFG;
            $ok = true;

      // if the version number indicates this could be an early HotPot v2.1 (Moodle 1.6),
      — 1,6 ----
      <?PHP
      function hotpot_upgrade($oldversion) {
      ! global $db, $CFG;
      $ok = true;

      // if the version number indicates this could be an early HotPot v2.1 (Moodle 1.6),

            xxxxxxx Gordon Bateson
            mudrd8mz David Mudrák (@mudrd8mz)
            Nobody Nobody
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

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