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

Conflicts:
	op/op.AddDocumentLink.php
	op/op.RemoveDocumentLink.php
This commit is contained in:
Uwe Steinmann 2015-06-09 08:59:25 +02:00
parent ddf2ab1731
commit 083e2a55a9
10 changed files with 10 additions and 12 deletions

View File

@ -66,6 +66,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

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

View File

@ -274,6 +274,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

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

View File

@ -70,6 +70,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

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

View File

@ -347,6 +347,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

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

View File

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

View File

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