Commit c1e55766 authored by Robert Lyon's avatar Robert Lyon
Browse files

Bug 1629154: Fixing issues when deleting an institution

When an institution has artefacts attached, eg Logo image we
include the artefact/lib.php file

Change-Id: I5da9ee684ac3520c682d25cf359ae1e009053e64
Signed-off-by: Robert Lyon's avatarRobert Lyon <>
parent 933fc266
......@@ -116,6 +116,7 @@ if ($institution || $add) {
if ($artefactids) {
require_once(get_config('docroot') . 'artefact/lib.php');
foreach ($artefactids as $artefactid) {
try {
$a = artefact_instance_from_id($artefactid);
......@@ -33,4 +33,12 @@ Scenario: Creating an institution (selenium test)
# Removing the first authentication option
And I click on "Delete" in "Web services" row
# Adding an institution logo
And I attach the file "Image2.png" to "Logo"
And I press "Submit"
# Delete the institution
And I press "Delete" in the "table#adminstitutionslist" "css_element"
And I press "Yes"
Then I should see "Institution deleted successfully"
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