Commit 27bcd69b93cde756bf6213a63f23db8444b3e5a7

Authored by michael
1 parent 4e51be46

Type: Bugfix

Description:		Corrected form action relative paths.
Behaviour before fix:	Search 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@2829 c91229c3-7414-0410-bfa2-8a42b809f60b
presentation/lookAndFeel/knowledgeTree/search/advancedSearchBL.php
... ... @@ -63,7 +63,7 @@ if (checkSession()) {
63 63 $main->setCentralPayload($oPatternCustom);
64 64 $main->setErrorMessage("Please select at least one criteria to search by");
65 65 $main->setHasRequiredFields(true);
66   - $main->setFormAction("advancedSearchBL.php?fForSearch=1");
  66 + $main->setFormAction($_SERVER["PHP_SELF"] . "?fForSearch=1");
67 67 $main->render();
68 68 }
69 69 } else {
... ... @@ -74,7 +74,7 @@ if (checkSession()) {
74 74 $main->setCentralPayload($oPatternCustom);
75 75 $main->setErrorMessage("Please enter text to search on");
76 76 $main->setHasRequiredFields(true);
77   - $main->setFormAction("advancedSearchBL.php?fForSearch=1");
  77 + $main->setFormAction($_SERVER["PHP_SELF"] . "?fForSearch=1");
78 78 $main->render();
79 79 }
80 80  
... ... @@ -84,7 +84,7 @@ if (checkSession()) {
84 84 $oPatternCustom->setHtml(getSearchPage($fSearchString));
85 85 $main->setHasRequiredFields(true);
86 86 $main->setCentralPayload($oPatternCustom);
87   - $main->setFormAction("advancedSearchBL.php?fForSearch=1");
  87 + $main->setFormAction($_SERVER["PHP_SELF"] . "?fForSearch=1");
88 88 $main->render();
89 89 }
90 90 }
... ...