← Back to team overview

mahara-contributors team mailing list archive

[Bug 1970680] Re: Upgrade fails when LTI Advantage not installed

 

** Also affects: mahara/21.04
   Importance: Undecided
       Status: New

** Also affects: mahara/20.10
   Importance: Undecided
       Status: New

** Also affects: mahara/22.04
   Importance: Critical
     Assignee: Gold (gold.catalyst)
       Status: Confirmed

** Also affects: mahara/22.10
   Importance: Undecided
       Status: New

** Also affects: mahara/21.10
   Importance: Undecided
       Status: New

** Changed in: mahara/22.10
       Status: New => Confirmed

** Changed in: mahara/22.10
   Importance: Undecided => Critical

** Changed in: mahara/21.10
       Status: New => Confirmed

** Changed in: mahara/21.04
       Status: New => Confirmed

** Changed in: mahara/20.10
       Status: New => Confirmed

** Changed in: mahara/21.10
   Importance: Undecided => Critical

** Changed in: mahara/21.04
   Importance: Undecided => Critical

** Changed in: mahara/20.10
   Importance: Undecided => Critical

** Changed in: mahara/22.10
    Milestone: None => 22.10.0

** Changed in: mahara/22.04
    Milestone: None => 22.04.1

** Changed in: mahara/21.10
    Milestone: None => 21.10.3

** Changed in: mahara/21.04
    Milestone: None => 21.04.5

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: mahara-contributors
https://bugs.launchpad.net/bugs/1970680

Title:
  Upgrade fails when LTI Advantage not installed

Status in Mahara:
  Confirmed
Status in Mahara 20.10 series:
  Confirmed
Status in Mahara 21.04 series:
  Confirmed
Status in Mahara 21.10 series:
  Confirmed
Status in Mahara 22.04 series:
  Confirmed
Status in Mahara 22.10 series:
  Confirmed

Bug description:
  While upgrading a test site on Mahara 21.x that did not have LTI
  Advantage the upgrade fails.

  Tracked this to an upgrade step in htdocs/lib/db/upgrade.php

  This version resolved the issue:

      if ($oldversion < 2021042718) {
          $table = new XMLDBTable('lti_assessment');
          if (table_exists($table)) {
              log_debug("Make sure groups associated with LTI assessment have 'submittableto' set to true");
              execute_sql("
                  UPDATE {group}
                  SET submittableto = 1
                  WHERE id IN (
                      SELECT foo.id FROM (
                          SELECT g1.id
                          FROM {lti_assessment} l
                          JOIN {group} g1 ON g1.id = l.group
                          WHERE g1.submittableto = 0
                      ) AS foo
                  )");
          }
      }

To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/1970680/+subscriptions



References