Skip to content

Commit b152f9b

Browse files
committed
Fixed bug in tform_actions
1 parent eac8833 commit b152f9b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interface/lib/classes/tform_actions.inc.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ function onUpdate() {
118118
if($_SESSION["s"]["form"]["return_to"] != '') {
119119
$list_name = $_SESSION["s"]["form"]["return_to"];
120120
$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"];
121-
unset($_SESSION["s"]["form"]["return_to"]);
121+
$_SESSION["s"]["form"]["return_to"] = '';
122122
header($redirect);
123123
} else {
124124
header("Location: ".$app->tform->formDef['list_default']);
@@ -155,7 +155,7 @@ function onInsert() {
155155
if($_SESSION["s"]["form"]["return_to"] != '') {
156156
$list_name = $_SESSION["s"]["form"]["return_to"];
157157
$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"];
158-
unset($_SESSION["s"]["form"]["return_to"]);
158+
$_SESSION["s"]["form"]["return_to"] = '';
159159
header($redirect);
160160
} else {
161161
header("Location: ".$app->tform->formDef['list_default']);
@@ -237,7 +237,7 @@ function onDelete() {
237237
if($_SESSION["s"]["form"]["return_to"] != '') {
238238
$list_name = $_SESSION["s"]["form"]["return_to"];
239239
$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"];
240-
unset($_SESSION["s"]["form"]["return_to"]);
240+
$_SESSION["s"]["form"]["return_to"] = '';
241241
header($redirect);
242242
} else {
243243
header("Location: ".$liste["file"]);

0 commit comments

Comments
 (0)