MDL-54610 mod_lti: Fix cartridge support for admin tool add/edit forms

This commit is contained in:
Jake Dallimore
2016-06-24 14:14:28 +08:00
parent b8474fe0c7
commit f56cbd3bbf
+2
View File
@@ -125,11 +125,13 @@ if ($data = $form->get_data()) {
$type = new stdClass();
if (!empty($id)) {
$type->id = $id;
lti_load_type_if_cartridge($data);
lti_update_type($type, $data);
redirect($redirect);
} else {
$type->state = LTI_TOOL_STATE_CONFIGURED;
lti_load_type_if_cartridge($data);
lti_add_type($type, $data);
redirect($redirect);