tbrehm
2005-11-24 eac88333c4335a25a501b3badd76e558fb68f708
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();
@@ -219,7 +233,15 @@
         }
      }
      header("Location: ".$liste["file"]."?PHPSESSID=".$_SESSION["s"]["id"]);
      //header("Location: ".$liste["file"]."?PHPSESSID=".$_SESSION["s"]["id"]);
      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: ".$liste["file"]);
      }
      exit;
      
   }