Commit 73ca19dd authored by Ghada El-Zoghbi's avatar Ghada El-Zoghbi Committed by Robert Lyon
Browse files

Bug 1808935: Error Deleting External App - Foreign Key Constraint

behatnotneeded

Change-Id: Ifb11779659e707753ab5305684a4f1281f03931f
(cherry picked from commit f994c862)
parent 7483a3bd
......@@ -117,6 +117,10 @@ function webservices_server_submit(Pieform $form, $values) {
DELETE FROM {oauth_server_token}
WHERE osr_id_ref = ?
', array($dbserver->id));
delete_records_sql('
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'));
}
......
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