Skip to content
Snippets Groups Projects
Commit b152f9b1 authored by tbrehm's avatar tbrehm
Browse files

Fixed bug in tform_actions

parent eac88333
No related branches found
No related tags found
No related merge requests found
......@@ -118,7 +118,7 @@ class tform_actions {
if($_SESSION["s"]["form"]["return_to"] != '') {
$list_name = $_SESSION["s"]["form"]["return_to"];
$redirect = "Location: ".$_SESSION["s"]["list"][$list_name]["parent_script"]."?id=".$_SESSION["s"]["list"][$list_name]["parent_id"]."&next_tab=".$_SESSION["s"]["list"][$list_name]["parent_tab"];
unset($_SESSION["s"]["form"]["return_to"]);
$_SESSION["s"]["form"]["return_to"] = '';
header($redirect);
} else {
header("Location: ".$app->tform->formDef['list_default']);
......@@ -155,7 +155,7 @@ class tform_actions {
if($_SESSION["s"]["form"]["return_to"] != '') {
$list_name = $_SESSION["s"]["form"]["return_to"];
$redirect = "Location: ".$_SESSION["s"]["list"][$list_name]["parent_script"]."?id=".$_SESSION["s"]["list"][$list_name]["parent_id"]."&next_tab=".$_SESSION["s"]["list"][$list_name]["parent_tab"];
unset($_SESSION["s"]["form"]["return_to"]);
$_SESSION["s"]["form"]["return_to"] = '';
header($redirect);
} else {
header("Location: ".$app->tform->formDef['list_default']);
......@@ -237,7 +237,7 @@ class tform_actions {
if($_SESSION["s"]["form"]["return_to"] != '') {
$list_name = $_SESSION["s"]["form"]["return_to"];
$redirect = "Location: ".$_SESSION["s"]["list"][$list_name]["parent_script"]."?id=".$_SESSION["s"]["list"][$list_name]["parent_id"]."&next_tab=".$_SESSION["s"]["list"][$list_name]["parent_tab"];
unset($_SESSION["s"]["form"]["return_to"]);
$_SESSION["s"]["form"]["return_to"] = '';
header($redirect);
} else {
header("Location: ".$liste["file"]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment