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