1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 09:55:33 +02:00

Merge branch 'MDL-54610_master' of https://github.com/snake/moodle

This commit is contained in:
Andrew Nicols 2016-06-29 09:23:48 +08:00 committed by Dan Poltawski
commit 48d1322527

@ -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);