diff --git a/module/doc/model.php b/module/doc/model.php index 766acba127..e3cd3db633 100644 --- a/module/doc/model.php +++ b/module/doc/model.php @@ -1472,7 +1472,7 @@ class docModel extends model $docContent->files = ',' . $fileTitle->id; $docContent->title = $title; $docContent->content = ''; - $docContent->type = 'attachment'; + $docContent->type = isset($docContent->type) ? $docContent->type : 'attachment'; $docContent->digest = ''; $docContent->version = 1; $this->dao->insert(TABLE_DOCCONTENT)->data($docContent)->exec(); diff --git a/module/doc/ui/uploaddocs.html.php b/module/doc/ui/uploaddocs.html.php index 4f4237e858..823565a72f 100644 --- a/module/doc/ui/uploaddocs.html.php +++ b/module/doc/ui/uploaddocs.html.php @@ -162,5 +162,5 @@ formPanel ), formHidden('status', 'normal'), formHidden('type', $docType), - formHidden('contentType', 'html') + formHidden('contentType', 'doc') );