mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 09:35:00 +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
This commit is contained in:
parent
c2b2c34290
commit
d0b32e0fb8
|
@ -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."¤ttab=links");
|
||||
?>
|
||||
|
|
|
@ -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."¤ttab=attachments");
|
||||
|
||||
|
||||
?>
|
||||
|
|
|
@ -271,6 +271,6 @@ if ($_POST["approvalStatus"]==-1){
|
|||
}
|
||||
}
|
||||
|
||||
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
|
||||
header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=revapp");
|
||||
|
||||
?>
|
||||
|
|
|
@ -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."¤ttab=attachments");
|
||||
|
||||
?>
|
||||
|
|
|
@ -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."¤ttab=links");
|
||||
?>
|
||||
|
|
|
@ -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."¤ttab=previous");
|
||||
|
||||
?>
|
||||
|
|
|
@ -344,6 +344,6 @@ if ($_POST["reviewStatus"]==-1){
|
|||
}
|
||||
}
|
||||
|
||||
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);
|
||||
header("Location:../out/out.ViewDocument.php?documentid=".$documentid."¤ttab=revapp");
|
||||
|
||||
?>
|
||||
|
|
|
@ -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."¤ttab=workflow");
|
||||
?>
|
||||
|
|
|
@ -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."¤ttab=workflow");
|
||||
?>
|
||||
|
|
|
@ -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."¤ttab=workflow");
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user