Commit 5cc49173 authored by Penny Leach's avatar Penny Leach
Browse files

redirect to the right place after deleting an interaction

parent 1666f518
......@@ -217,7 +217,7 @@ function delete_interaction_submit(Pieform $form, $values) {
$instance->delete();
global $SESSION;
$SESSION->add_ok_msg(get_string('interactiondeleted', 'group', get_string('name', 'interaction.' . $instance->get('plugin'))));
redirect('/interaction/' . $values['plugin'] . 'index.php?group=' . $instance->get('group'));
redirect('/interaction/' . $instance->get('plugin') . '/index.php?group=' . $instance->get('group'));
}
......
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