Commit aa8a34027b86eb940ba3b7165150fa87b20df5c4
1 parent
c43f2a6a
redirect to type specific meta-data editing page if this is the first edit
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@1480 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
6 additions
and
2 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/modifyGenericMetaDataBL.php
| @@ -26,8 +26,12 @@ if (checkSession()) { | @@ -26,8 +26,12 @@ if (checkSession()) { | ||
| 26 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); | 26 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 27 | $oPatternCustom = & new PatternCustom(); | 27 | $oPatternCustom = & new PatternCustom(); |
| 28 | $oPatternCustom->setHtml(getPage($fDocumentID, $oDocument->getDocumentTypeID(), $fFirstEdit)); | 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")); | 29 | + $main->setCentralPayload($oPatternCustom); |
| 30 | + if (isset($fFirstEdit)) { | ||
| 31 | + $main->setFormAction("../store.php?fReturnURL=" . urlencode("$default->rootUrl/control.php?action=modifyDocumentTypeMetaData&fDocumentID=$fDocumentID&fFirstEdit=1")); | ||
| 32 | + } else { | ||
| 33 | + $main->setFormAction("../store.php?fReturnURL=" . urlencode("$default->rootUrl/control.php?action=viewDocument&fDocumentID=$fDocumentID")); | ||
| 34 | + } | ||
| 31 | $main->setHasRequiredFields(true); | 35 | $main->setHasRequiredFields(true); |
| 32 | $main->render(); | 36 | $main->render(); |
| 33 | } | 37 | } |