add currenttab to link when redirecting to out/out.ViewDocument.php

Conflicts:
	op/op.AddDocumentLink.php
	op/op.ReceiptDocument.php
	op/op.RemoveDocumentLink.php
	op/op.ReviseDocument.php
This commit is contained in:
Uwe Steinmann 2015-06-09 08:59:25 +02:00
parent c2b2c34290
commit d0b32e0fb8
10 changed files with 11 additions and 13 deletions

View File

@ -64,6 +64,5 @@ 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."&currenttab=links");
?>

View File

@ -106,7 +106,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."&currenttab=attachments");
?>

View File

@ -271,6 +271,6 @@ if ($_POST["approvalStatus"]==-1){
}
}
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
header("Location:../out/out.ViewDocument.php?documentid=".$documentid."&currenttab=revapp");
?>

View File

@ -93,6 +93,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."&currenttab=attachments");
?>

View File

@ -68,6 +68,5 @@ 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."&currenttab=links");
?>

View File

@ -189,6 +189,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."&currenttab=previous");
?>

View File

@ -344,6 +344,6 @@ if ($_POST["reviewStatus"]==-1){
}
}
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
header("Location:../out/out.ViewDocument.php?documentid=".$documentid."&currenttab=revapp");
?>

View File

@ -92,5 +92,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."&currenttab=workflow");
?>

View File

@ -101,5 +101,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."&currenttab=workflow");
?>

View File

@ -133,5 +133,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."&currenttab=workflow");
?>