Commit 1ebb7d25264f64c4ecd090b96ee5175b278dd82c
1 parent
f3b215f4
redirect to show document data on first edit
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2365 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
6 additions
and
2 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/modifySpecificMetaDataBL.php
| ... | ... | @@ -26,8 +26,12 @@ if (checkSession()) { |
| 26 | 26 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 27 | 27 | $oPatternCustom = & new PatternCustom(); |
| 28 | 28 | $oPatternCustom->setHtml(getPage($fDocumentID, $oDocument->getDocumentTypeID(), $fFirstEdit)); |
| 29 | - $main->setCentralPayload($oPatternCustom); | |
| 30 | - $main->setFormAction("../store.php?fReturnURL=" . urlencode("$default->rootUrl/control.php?action=viewDocument&fDocumentID=$fDocumentID&fShowSection=typeSpecificMetaData")); | |
| 29 | + $main->setCentralPayload($oPatternCustom); | |
| 30 | + if (isset($fFirstEdit)) { | |
| 31 | + $main->setFormAction("../store.php?fReturnURL=" . urlencode("$default->rootUrl/control.php?action=viewDocument&fDocumentID=$fDocumentID")); | |
| 32 | + } else { | |
| 33 | + $main->setFormAction("../store.php?fReturnURL=" . urlencode("$default->rootUrl/control.php?action=viewDocument&fDocumentID=$fDocumentID&fShowSection=typeSpecificMetaData")); | |
| 34 | + } | |
| 31 | 35 | $main->setHasRequiredFields(true); |
| 32 | 36 | $main->render(); |
| 33 | 37 | } | ... | ... |