Commit e85bada3d83bc541841ce4b78f488e31134db98a
1 parent
083c781d
#3548 removed default document type
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@2795 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
1 deletions
presentation/lookAndFeel/knowledgeTree/documentmanagement/addDocumentUI.inc
| @@ -30,7 +30,8 @@ function getDocumentType($iFolderID, $iDocumentTypeID, $iDependantDocumentID = n | @@ -30,7 +30,8 @@ function getDocumentType($iFolderID, $iDocumentTypeID, $iDependantDocumentID = n | ||
| 30 | 30 | ||
| 31 | $sWhereClause = "FDL.folder_id = $iFolderID"; | 31 | $sWhereClause = "FDL.folder_id = $iFolderID"; |
| 32 | $oPatternListBox = & new PatternListBox("$default->document_types_table", "name", "id", "fDocumentTypeID",$sWhereClause); | 32 | $oPatternListBox = & new PatternListBox("$default->document_types_table", "name", "id", "fDocumentTypeID",$sWhereClause); |
| 33 | - $oPatternListBox->setIncludeDefaultValue(true); | 33 | + // #3548 removed default document type |
| 34 | + $oPatternListBox->setIncludeDefaultValue(false); | ||
| 34 | $oPatternListBox->setFromClause("INNER JOIN $default->folder_doctypes_table AS FDL ON ST.id = FDL.document_type_id"); | 35 | $oPatternListBox->setFromClause("INNER JOIN $default->folder_doctypes_table AS FDL ON ST.id = FDL.document_type_id"); |
| 35 | $oPatternListBox->setEmptyErrorMessage("No document types defined! Please contact an Administrator"); | 36 | $oPatternListBox->setEmptyErrorMessage("No document types defined! Please contact an Administrator"); |
| 36 | 37 |