Commit fc75610dbc91d8eac45d468879359351eadf55cc
1 parent
27bcd69b
Type: Bugfix
Description: Corrected form action relative paths. Behaviour before fix: Functionality broken for sites with the dms not at site root. Behaviour after fix: Expected functionality for all installations. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2830 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
3 deletions
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderDocTypeBL.php
| ... | ... | @@ -46,7 +46,7 @@ if (checkSession()) { |
| 46 | 46 | $oPatternCustom->setHtml(getPage($fFolderID, $fDocumentTypeID)); |
| 47 | 47 | $main->setCentralPayload($oPatternCustom); |
| 48 | 48 | $main->setErrorMessage("The folder has already been assigned this document type"); |
| 49 | - $main->setFormAction("addFolderDocTypeBL.php?fForAdd=1&fFolderID=$fFolderID"); | |
| 49 | + $main->setFormAction($_SERVER["PHP_SELF"] . "?fForAdd=1&fFolderID=$fFolderID"); | |
| 50 | 50 | $main->render(); |
| 51 | 51 | |
| 52 | 52 | } else { |
| ... | ... | @@ -59,7 +59,7 @@ if (checkSession()) { |
| 59 | 59 | $oPatternCustom->setHtml(getPage($fFolderID, $fDocumentTypeID)); |
| 60 | 60 | $main->setCentralPayload($oPatternCustom); |
| 61 | 61 | $main->setErrorMessage("A database error occured while attempting to assig the document type to the folder"); |
| 62 | - $main->setFormAction("addFolderDocTypeBL.php?fForAdd=1&fFolderID=$fFolderID"); | |
| 62 | + $main->setFormAction($_SERVER["PHP_SELF"] . "?fForAdd=1&fFolderID=$fFolderID"); | |
| 63 | 63 | $main->render(); |
| 64 | 64 | } |
| 65 | 65 | } |
| ... | ... | @@ -68,7 +68,7 @@ if (checkSession()) { |
| 68 | 68 | require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); |
| 69 | 69 | $oPatternCustom->setHtml(getPage($fFolderID, $fDocumentTypeID)); |
| 70 | 70 | $main->setCentralPayload($oPatternCustom); |
| 71 | - $main->setFormAction("addFolderDocTypeBL.php?fForAdd=1&fFolderID=$fFolderID"); | |
| 71 | + $main->setFormAction($_SERVER["PHP_SELF"] . "?fForAdd=1&fFolderID=$fFolderID"); | |
| 72 | 72 | $main->render(); |
| 73 | 73 | } |
| 74 | 74 | } else { | ... | ... |