Fixing prerequisites link see #5816

skala
Julio Montoya 12 years ago
parent cdcfd78ae9
commit 6ac77b9d35
  1. 9
      main/newscorm/lp_controller.php

@ -436,7 +436,6 @@ switch ($action) {
}
}
break;
case 'edit_item_prereq':
if (!$is_allowed_to_edit) {
api_not_allowed(true);
@ -447,16 +446,18 @@ switch ($action) {
if (isset($_POST['submit_button'])) {
//Updating the lp.modified_on
$_SESSION['oLP']->set_modified_on();
$_SESSION['refresh'] = 1;
if ($_SESSION['oLP']->edit_item_prereq($_GET['id'], $_POST['prerequisites'], $_POST['min_' . $_POST['prerequisites']], $_POST['max_' . $_POST['prerequisites']])) {
$is_success = true;
}
}
//require 'lp_edit_item_prereq.php';
$url = api_get_self().'?action=add_item&type=step&lp_id='.intval($_SESSION['oLP']->lp_id);
header('Location: '.$url);
exit;
} else {
require 'lp_edit_item_prereq.php';
}
}
break;

Loading…
Cancel
Save