mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
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:
parent
ddf2ab1731
commit
083e2a55a9
|
@ -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."¤ttab=links");
|
||||
?>
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
||||
?>
|
||||
|
|
|
@ -274,6 +274,6 @@ if ($_POST["approvalStatus"]==-1){
|
|||
}
|
||||
}
|
||||
|
||||
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
|
||||
header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=revapp");
|
||||
|
||||
?>
|
||||
|
|
|
@ -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");
|
||||
|
||||
?>
|
||||
|
|
|
@ -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."¤ttab=links");
|
||||
?>
|
||||
|
|
|
@ -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");
|
||||
|
||||
?>
|
||||
|
|
|
@ -347,6 +347,6 @@ if ($_POST["reviewStatus"]==-1){
|
|||
}
|
||||
}
|
||||
|
||||
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
|
||||
header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=revapp");
|
||||
|
||||
?>
|
||||
|
|
|
@ -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");
|
||||
?>
|
||||
|
|
|
@ -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");
|
||||
?>
|
||||
|
|
|
@ -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");
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user