Commit 4cad7dfb authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Merge "Bug 1808935: Error Deleting External App - Foreign Key Constraint"

parents ad03ff4b f994c862
......@@ -117,6 +117,10 @@ function webservices_server_submit(Pieform $form, $values) {
DELETE FROM {oauth_server_token}
WHERE osr_id_ref = ?
', array($dbserver->id));
DELETE FROM {lti_assessment}
WHERE oauthserver = ?
', array($dbserver->id));
$store->deleteServer($dbserver->consumer_key, $dbserver->userid, $is_admin);
$SESSION->add_ok_msg(get_string('oauthserverdeleted', 'auth.webservice'));
Supports Markdown
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