Commit fc75610dbc91d8eac45d468879359351eadf55cc

Authored by michael
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
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderDocTypeBL.php
@@ -46,7 +46,7 @@ if (checkSession()) { @@ -46,7 +46,7 @@ if (checkSession()) {
46 $oPatternCustom->setHtml(getPage($fFolderID, $fDocumentTypeID)); 46 $oPatternCustom->setHtml(getPage($fFolderID, $fDocumentTypeID));
47 $main->setCentralPayload($oPatternCustom); 47 $main->setCentralPayload($oPatternCustom);
48 $main->setErrorMessage("The folder has already been assigned this document type"); 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 $main->render(); 50 $main->render();
51 51
52 } else { 52 } else {
@@ -59,7 +59,7 @@ if (checkSession()) { @@ -59,7 +59,7 @@ if (checkSession()) {
59 $oPatternCustom->setHtml(getPage($fFolderID, $fDocumentTypeID)); 59 $oPatternCustom->setHtml(getPage($fFolderID, $fDocumentTypeID));
60 $main->setCentralPayload($oPatternCustom); 60 $main->setCentralPayload($oPatternCustom);
61 $main->setErrorMessage("A database error occured while attempting to assig the document type to the folder"); 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 $main->render(); 63 $main->render();
64 } 64 }
65 } 65 }
@@ -68,7 +68,7 @@ if (checkSession()) { @@ -68,7 +68,7 @@ if (checkSession()) {
68 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc"); 68 require_once("$default->fileSystemRoot/presentation/webpageTemplate.inc");
69 $oPatternCustom->setHtml(getPage($fFolderID, $fDocumentTypeID)); 69 $oPatternCustom->setHtml(getPage($fFolderID, $fDocumentTypeID));
70 $main->setCentralPayload($oPatternCustom); 70 $main->setCentralPayload($oPatternCustom);
71 - $main->setFormAction("addFolderDocTypeBL.php?fForAdd=1&fFolderID=$fFolderID"); 71 + $main->setFormAction($_SERVER["PHP_SELF"] . "?fForAdd=1&fFolderID=$fFolderID");
72 $main->render(); 72 $main->render();
73 } 73 }
74 } else { 74 } else {