Patch for "master" branch: https://reviews.mahara.org/8576

-- 
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:
  In Progress

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

_______________________________________________
Mailing list: https://launchpad.net/~mahara-contributors
Post to     : mahara-contributors@lists.launchpad.net
Unsubscribe : https://launchpad.net/~mahara-contributors
More help   : https://help.launchpad.net/ListHelp

Reply via email to