Commit cce6a4bd authored by Nigel McNie's avatar Nigel McNie
Browse files

(#3152) Clear out lastauthinstance column when deleting institutions.

(cherry picked from commit f39352d5)
parent 71969c30
......@@ -81,6 +81,7 @@ if ($institution || $add) {
db_begin();
foreach ($authinstanceids as $id) {
delete_records('auth_instance_config', 'instance', $id);
execute_sql('UPDATE {usr} SET lastauthinstance = NULL WHERE lastauthinstance = ?', array($id));
}
delete_records('auth_instance', 'institution', $values['i']);
delete_records('host', 'institution', $values['i']);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment