mahara-contributors team mailing list archive
-
mahara-contributors team
-
Mailing list archive
-
Message #08052
[Bug 917873] A change has been merged
Reviewed: https://reviews.mahara.org/995
Committed: http://gitorious.org/mahara/mahara/commit/d1310840778f167cecc13971194ab0a156785afc
Submitter: Richard Mansfield (richardm@xxxxxxxxxx)
Branch: master
commit d1310840778f167cecc13971194ab0a156785afc
Author: Richard Mansfield <richard.mansfield@xxxxxxxxxxxxxxx>
Date: Wed Jan 18 09:52:52 2012 +1300
Check for authinstances in use when deleting institutions (bug #917873)
When you delete an institution, and one of the institution's
authinstances is still in use by some users, you get an sql error and
a nonrecoverable error screen. (This can only happen when the users
still using the authinstance are not institution members, because
there is already a check to stop deletion of institutions with
members).
This patch allows the institution to be deleted anyway, reassigning
the offending users to a 'default' authinstance. If we can't find a
sensible default authinstance, it will at least display a more helpful
error message.
Also, when attempting to delete an institution with members, set an
error on the form rather than throwing a ConfigException.
Change-Id: I9c85a3c8c80411e3cf526767b9142efb12907e5c
Signed-off-by: Richard Mansfield <richard.mansfield@xxxxxxxxxxxxxxx>
--
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/917873
Title:
Error when deleting an institution whose auth method is in use
Status in Mahara ePortfolio:
In Progress
Bug description:
When you delete an institution, and one of the institution's
authinstances is still in use by some users, you get an sql error and
a nonrecoverable error screen. (This can only happen when the users
still using the authinstance are not institution members, because
there is already a check to stop deletion of institutions with
members).
To manage notifications about this bug go to:
https://bugs.launchpad.net/mahara/+bug/917873/+subscriptions
References