Commit 27bcd69b93cde756bf6213a63f23db8444b3e5a7
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
Showing
1 changed file
with
3 additions
and
3 deletions
presentation/lookAndFeel/knowledgeTree/search/advancedSearchBL.php
| @@ -63,7 +63,7 @@ if (checkSession()) { | @@ -63,7 +63,7 @@ if (checkSession()) { | ||
| 63 | $main->setCentralPayload($oPatternCustom); | 63 | $main->setCentralPayload($oPatternCustom); |
| 64 | $main->setErrorMessage("Please select at least one criteria to search by"); | 64 | $main->setErrorMessage("Please select at least one criteria to search by"); |
| 65 | $main->setHasRequiredFields(true); | 65 | $main->setHasRequiredFields(true); |
| 66 | - $main->setFormAction("advancedSearchBL.php?fForSearch=1"); | 66 | + $main->setFormAction($_SERVER["PHP_SELF"] . "?fForSearch=1"); |
| 67 | $main->render(); | 67 | $main->render(); |
| 68 | } | 68 | } |
| 69 | } else { | 69 | } else { |
| @@ -74,7 +74,7 @@ if (checkSession()) { | @@ -74,7 +74,7 @@ if (checkSession()) { | ||
| 74 | $main->setCentralPayload($oPatternCustom); | 74 | $main->setCentralPayload($oPatternCustom); |
| 75 | $main->setErrorMessage("Please enter text to search on"); | 75 | $main->setErrorMessage("Please enter text to search on"); |
| 76 | $main->setHasRequiredFields(true); | 76 | $main->setHasRequiredFields(true); |
| 77 | - $main->setFormAction("advancedSearchBL.php?fForSearch=1"); | 77 | + $main->setFormAction($_SERVER["PHP_SELF"] . "?fForSearch=1"); |
| 78 | $main->render(); | 78 | $main->render(); |
| 79 | } | 79 | } |
| 80 | 80 | ||
| @@ -84,7 +84,7 @@ if (checkSession()) { | @@ -84,7 +84,7 @@ if (checkSession()) { | ||
| 84 | $oPatternCustom->setHtml(getSearchPage($fSearchString)); | 84 | $oPatternCustom->setHtml(getSearchPage($fSearchString)); |
| 85 | $main->setHasRequiredFields(true); | 85 | $main->setHasRequiredFields(true); |
| 86 | $main->setCentralPayload($oPatternCustom); | 86 | $main->setCentralPayload($oPatternCustom); |
| 87 | - $main->setFormAction("advancedSearchBL.php?fForSearch=1"); | 87 | + $main->setFormAction($_SERVER["PHP_SELF"] . "?fForSearch=1"); |
| 88 | $main->render(); | 88 | $main->render(); |
| 89 | } | 89 | } |
| 90 | } | 90 | } |