From 3ccf9dac7db17fc6aada8c801e3d8ef2d9bcc5e2 Mon Sep 17 00:00:00 2001 From: michael Date: Mon, 26 Apr 2004 14:46:02 +0000 Subject: [PATCH] Type: Functionality change Description: Added ordering to document type drop down list by document type name. Behaviour before fix: Document type were ordered "randomly" Behaviour after fix: Document types are now ordered by document type name. Credit: Patch contributed by Stefano Ciancio. --- presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderDocTypeUI.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderDocTypeUI.inc b/presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderDocTypeUI.inc index e85e182..02c1a4b 100644 --- a/presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderDocTypeUI.inc +++ b/presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderDocTypeUI.inc @@ -53,7 +53,8 @@ function getDocumentTypeDropDown($iDocumentTypeID, $iFolderID) { $oPatternListBox->setQuery("SELECT DTL.name AS display, DTL.id AS value " . "FROM $default->document_types_table AS DTL " . "LEFT OUTER JOIN $default->folder_doctypes_table AS FDL ON FDL.document_type_id = DTL.id AND FDL.folder_id = $iFolderID " . - "WHERE folder_id IS NULL"); + "WHERE folder_id IS NULL " . + "ORDER BY DTL.name"); $oPatternListBox->setSelectName("fDocumentTypeID"); $oPatternListBox->setIncludeDefaultValue(false); if (isset($iDocumentTypeID)) { -- libgit2 0.21.4