diff --git a/presentation/lookAndFeel/knowledgeTree/administration/documentmanagement/manageArchivedDocumentsBL.php b/presentation/lookAndFeel/knowledgeTree/administration/documentmanagement/manageArchivedDocumentsBL.php index 82641d5..4ec0e89 100644 --- a/presentation/lookAndFeel/knowledgeTree/administration/documentmanagement/manageArchivedDocumentsBL.php +++ b/presentation/lookAndFeel/knowledgeTree/administration/documentmanagement/manageArchivedDocumentsBL.php @@ -48,7 +48,7 @@ if (checkSession()) { if (strlen($fSearchString) > 0) { // perform the search and display the results - $sMetaTagIDs = getChosenMetaDataTags(); + $sMetaTagIDs = getChosenMetaDataTags($_GET); if (strlen($sMetaTagIDs) > 0) { $sSQLSearchString = getSQLSearchString($fSearchString); $aDocuments = searchForDocuments($sMetaTagIDs, $sSQLSearchString, "Archived"); @@ -140,7 +140,6 @@ if (checkSession()) { $main->setCentralPayload($oContent); $main->setFormAction($_SERVER['PHP_SELF']); $main->setHasRequiredFields(true); - $main->setSubmitMethod("GET"); $main->render(); } diff --git a/presentation/lookAndFeel/knowledgeTree/search/advancedSearchBL.php b/presentation/lookAndFeel/knowledgeTree/search/advancedSearchBL.php index 8d48f08..5d12a1a 100644 --- a/presentation/lookAndFeel/knowledgeTree/search/advancedSearchBL.php +++ b/presentation/lookAndFeel/knowledgeTree/search/advancedSearchBL.php @@ -46,7 +46,7 @@ if (checkSession()) { $oPatternCustom = & new PatternCustom(); //display search results - $sMetaTagIDs = getChosenMetaDataTags(); + $sMetaTagIDs = getChosenMetaDataTags($_POST); if (strlen($sMetaTagIDs) > 0) { $sSQLSearchString = getSQLSearchString($fSearchString); diff --git a/presentation/lookAndFeel/knowledgeTree/search/advancedSearchUtil.inc b/presentation/lookAndFeel/knowledgeTree/search/advancedSearchUtil.inc index e791659..31c59bb 100644 --- a/presentation/lookAndFeel/knowledgeTree/search/advancedSearchUtil.inc +++ b/presentation/lookAndFeel/knowledgeTree/search/advancedSearchUtil.inc @@ -29,8 +29,8 @@ /** * Interrogates the posted variables for the chosen metadata tags */ -function getChosenMetaDataTags() { - $aKeys = array_keys($_POST); +function getChosenMetaDataTags($aVariables) { + $aKeys = array_keys($aVariables); $aTagIDs = array(); for ($i = 0; $i < count($aKeys); $i++) { $sRowStart = $aKeys[$i];