* [story #70009] change default doc content type to "doc" from uploading local files.

This commit is contained in:
sunhao
2024-12-10 17:12:57 +08:00
committed by 丁永亮
parent 675e60f0e6
commit 830feb8661
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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();
+1 -1
View File
@@ -162,5 +162,5 @@ formPanel
),
formHidden('status', 'normal'),
formHidden('type', $docType),
formHidden('contentType', 'html')
formHidden('contentType', 'doc')
);