From 9cdea4e876538eaa030af96a9fc18fd53d2272b9 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Fri, 22 Jan 2016 11:27:02 +0100 Subject: [PATCH] Fix wrong redirection + add api_get_cidReq --- main/newscorm/lp_controller.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main/newscorm/lp_controller.php b/main/newscorm/lp_controller.php index 122abc4daa..ea14edb068 100755 --- a/main/newscorm/lp_controller.php +++ b/main/newscorm/lp_controller.php @@ -695,7 +695,7 @@ switch ($action) { $is_success = true; } - $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).'&'.api_get_cidreq(); header('Location: '.$url); exit; } else { @@ -722,7 +722,7 @@ switch ($action) { $_POST['description'] ); $is_success = true; - $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).'&'.api_get_cidreq(); header('Location: '.$url); } if (isset($_GET['view']) && $_GET['view'] == 'build') { @@ -1337,7 +1337,7 @@ switch ($action) { } } - header('Location:' . api_get_path(WEB_PATH) . api_get_self() . '?' . http_build_query([ + header('Location:' . api_get_self() . '?' . http_build_query([ 'action' => 'add_item', 'type' => 'step', 'lp_id' => $_SESSION['oLP']->lp_id @@ -1379,7 +1379,7 @@ switch ($action) { } } - header('Location:' . api_get_path(WEB_PATH) . api_get_self() . '?' . http_build_query([ + header('Location:' . api_get_self() . '?' . http_build_query([ 'action' => 'add_item', 'type' => 'step', 'lp_id' => $_SESSION['oLP']->lp_id