← Back to team overview

mahara-contributors team mailing list archive

[Bug 1748079] A change has been merged

 

Reviewed:  https://reviews.mahara.org/8576
Committed: https://git.mahara.org/mahara/mahara/commit/e98fd36d56fecb25d23bc1c0fa80cc3464c1866c
Submitter: Robert Lyon (robertl@xxxxxxxxxxxxxxx)
Branch:    master

commit e98fd36d56fecb25d23bc1c0fa80cc3464c1866c
Author: Cecilia Vela Gurovic <ceciliavg@xxxxxxxxxxxxxxx>
Date:   Tue Mar 6 13:57:47 2018 +1300

Bug 1748079: deleting usr agreement when deleting intitution

behatnotneeded

Change-Id: I421ba98f8d9586a6049bd47cef6de8a40d598904

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it!
https://bugs.launchpad.net/bugs/1748079

Title:
  Can't delete institution when users have accepted its privacy
  statement

Status in Mahara:
  Fix Committed

Bug description:
  to replicate:

  Set privacy switch to true in 'Site opstions' -> "Institutions'
  Create an institution and add a privacy to it
  Add a user to the institution, login as the user and accept the privacy statement
  Remove the user from the institution
  Try to delete the institution

  An error is displayed and the institution is not deleted:

  [WAR] 92 (lib/errors.php:859) Failed to get a recordset: postgres8 error: [-1: ERROR:  update or delete on table "site_content_version" violates foreign key constraint "usragre_sit_fk" on table "usr_agreement"
  DETAIL:  Key (id)=(5) is still referenced from table "usr_agreement".] in adodb_throw(DELETE FROM "site_content_version"  WHERE "institution" = ? , Array)Command was: DELETE FROM "site_content_version"  WHERE "institution" = ?  and values was (0:institutioni)

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


References