Commit 3ccf9dac7db17fc6aada8c801e3d8ef2d9bcc5e2
1 parent
fc75610d
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. git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2831 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/foldermanagement/addFolderDocTypeUI.inc
| ... | ... | @@ -53,7 +53,8 @@ function getDocumentTypeDropDown($iDocumentTypeID, $iFolderID) { |
| 53 | 53 | $oPatternListBox->setQuery("SELECT DTL.name AS display, DTL.id AS value " . |
| 54 | 54 | "FROM $default->document_types_table AS DTL " . |
| 55 | 55 | "LEFT OUTER JOIN $default->folder_doctypes_table AS FDL ON FDL.document_type_id = DTL.id AND FDL.folder_id = $iFolderID " . |
| 56 | - "WHERE folder_id IS NULL"); | |
| 56 | + "WHERE folder_id IS NULL " . | |
| 57 | + "ORDER BY DTL.name"); | |
| 57 | 58 | $oPatternListBox->setSelectName("fDocumentTypeID"); |
| 58 | 59 | $oPatternListBox->setIncludeDefaultValue(false); |
| 59 | 60 | if (isset($iDocumentTypeID)) { | ... | ... |