tbrehm
2005-11-24 a01f0ec2151f4213d5a17b138909dd79a23ae4d2
interface/lib/classes/tform_actions.inc.php
@@ -115,7 +115,14 @@
         }
         
         if($_REQUEST["next_tab"] == '') {
             header("Location: ".$app->tform->formDef['list_default']);
            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"]);
               header($redirect);
            } else {
                header("Location: ".$app->tform->formDef['list_default']);
            }
              exit;
          } else {
            $this->onShow();
@@ -145,7 +152,14 @@
         }
         
         if($_REQUEST["next_tab"] == '') {
             header("Location: ".$app->tform->formDef['list_default']);
             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"]);
               header($redirect);
            } else {
                header("Location: ".$app->tform->formDef['list_default']);
            }
              exit;
          } else {
            $this->onShow();