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
This commit is contained in:
parent
bd85c0c25a
commit
380ac2f1bd
|
@ -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");
|
||||
|
||||
?>
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
||||
?>
|
||||
|
|
|
@ -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");
|
||||
|
||||
?>
|
||||
|
|
|
@ -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");
|
||||
|
||||
?>
|
||||
|
|
|
@ -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,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");
|
||||
|
||||
?>
|
||||
|
|
|
@ -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");
|
||||
|
||||
?>
|
||||
|
|
|
@ -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");
|
||||
|
||||
?>
|
||||
|
|
|
@ -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");
|
||||
|
||||
?>
|
||||
|
|
|
@ -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