diff --git a/op/op.AddDocumentLink.php b/op/op.AddDocumentLink.php index ca72f07be..40cfed21e 100644 --- a/op/op.AddDocumentLink.php +++ b/op/op.AddDocumentLink.php @@ -66,6 +66,6 @@ if (!$document->addDocumentLink($docid, $user->getID(), $public)){ UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured")); } -header("Location:../out/out.ViewDocument.php?documentid=".$documentid); +header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=links"); ?> diff --git a/op/op.AddFile.php b/op/op.AddFile.php index bc4a5788f..8dfe3f4e1 100644 --- a/op/op.AddFile.php +++ b/op/op.AddFile.php @@ -108,7 +108,7 @@ if (is_bool($res) && !$res) { add_log_line("?name=".$name."&documentid=".$documentid); -header("Location:../out/out.ViewDocument.php?documentid=".$documentid); +header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=attachments"); ?> diff --git a/op/op.ApproveDocument.php b/op/op.ApproveDocument.php index 989b9d97f..cee6769de 100644 --- a/op/op.ApproveDocument.php +++ b/op/op.ApproveDocument.php @@ -154,6 +154,6 @@ if($olddocstatus['status'] != $newdocstatus['status']) { // TODO: if user os not owner send notification to owner } -header("Location:../out/out.ViewDocument.php?documentid=".$documentid); +header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=revapp"); ?> diff --git a/op/op.ReceiptDocument.php b/op/op.ReceiptDocument.php index 509e3938c..76f578833 100644 --- a/op/op.ReceiptDocument.php +++ b/op/op.ReceiptDocument.php @@ -97,6 +97,6 @@ if(!$controller->run()) { UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText($controller->getErrorMsg())); } -header("Location:../out/out.ViewDocument.php?documentid=".$documentid); +header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=recipients"); ?> diff --git a/op/op.RemoveDocumentFile.php b/op/op.RemoveDocumentFile.php index f4726e4ff..fd9e61661 100644 --- a/op/op.RemoveDocumentFile.php +++ b/op/op.RemoveDocumentFile.php @@ -95,6 +95,6 @@ if (!$document->removeDocumentFile($fileid)) { add_log_line("?documentid=".$documentid."&fileid=".$fileid); -header("Location:../out/out.ViewDocument.php?documentid=".$documentid); +header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=attachments"); ?> diff --git a/op/op.RemoveDocumentLink.php b/op/op.RemoveDocumentLink.php index 435104258..359a9518d 100644 --- a/op/op.RemoveDocumentLink.php +++ b/op/op.RemoveDocumentLink.php @@ -70,6 +70,6 @@ if (!$document->removeDocumentLink($linkid)) { add_log_line("?documentid=".$documentid."&linkid=".$linkid); -header("Location:../out/out.ViewDocument.php?documentid=".$documentid); +header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=links"); ?> diff --git a/op/op.RemoveVersion.php b/op/op.RemoveVersion.php index c4945ad6b..946eccaa8 100644 --- a/op/op.RemoveVersion.php +++ b/op/op.RemoveVersion.php @@ -191,6 +191,6 @@ else { add_log_line("?documentid=".$documentid."&version".$version_num); -header("Location:../out/out.ViewDocument.php?documentid=".$documentid); +header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=previous"); ?> diff --git a/op/op.ReviewDocument.php b/op/op.ReviewDocument.php index 082ea758f..dc401c1e7 100644 --- a/op/op.ReviewDocument.php +++ b/op/op.ReviewDocument.php @@ -176,6 +176,6 @@ if ($newStatus == S_DRAFT_APP) { } } -header("Location:../out/out.ViewDocument.php?documentid=".$documentid); +header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=revapp"); ?> diff --git a/op/op.ReviseDocument.php b/op/op.ReviseDocument.php index 2ef633378..7b22e1cda 100644 --- a/op/op.ReviseDocument.php +++ b/op/op.ReviseDocument.php @@ -145,6 +145,6 @@ if($olddocstatus['status'] != $newdocstatus['status']) { } } -header("Location:../out/out.ViewDocument.php?documentid=".$documentid); +header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=revision"); ?> diff --git a/op/op.RewindWorkflow.php b/op/op.RewindWorkflow.php index 5147ee094..ccf6c4d9b 100644 --- a/op/op.RewindWorkflow.php +++ b/op/op.RewindWorkflow.php @@ -94,5 +94,5 @@ if($version->rewindWorkflow()) { add_log_line("?documentid=".$documentid."&version".$version_num); -header("Location:../out/out.ViewDocument.php?documentid=".$documentid); +header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=workflow"); ?> diff --git a/op/op.RunSubWorkflow.php b/op/op.RunSubWorkflow.php index a0e8dfb74..c0225cc25 100644 --- a/op/op.RunSubWorkflow.php +++ b/op/op.RunSubWorkflow.php @@ -103,5 +103,5 @@ if($version->runSubWorkflow($subworkflow)) { add_log_line("?documentid=".$documentid."&version".$version_num); -header("Location:../out/out.ViewDocument.php?documentid=".$documentid); +header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=workflow"); ?> diff --git a/op/op.TriggerWorkflow.php b/op/op.TriggerWorkflow.php index 724d7ce78..6d01b1f8f 100644 --- a/op/op.TriggerWorkflow.php +++ b/op/op.TriggerWorkflow.php @@ -135,5 +135,5 @@ if($version->triggerWorkflowTransition($user, $transition, $_POST["comment"])) { add_log_line("?documentid=".$documentid."&version".$version_num); -header("Location:../out/out.ViewDocument.php?documentid=".$documentid); +header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=workflow"); ?>