Merge branch 'MDL-54610_31' of https://github.com/snake/moodle into MOODLE_31_STABLE

This commit is contained in:
Andrew Nicols
2016-06-30 09:25:22 +01:00
committed by Dan Poltawski
+2
View File
@@ -96,9 +96,11 @@ 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);
} else {
$type->state = LTI_TOOL_STATE_CONFIGURED;
lti_load_type_if_cartridge($data);
lti_add_type($type, $data);
}
redirect($redirect);