From 612fa9283568bbeb3e068d690ff8b3ab2635ce34 Mon Sep 17 00:00:00 2001 From: dewekk <60457472+dewekk@users.noreply.github.com> Date: Tue, 17 Dec 2024 14:53:25 +0900 Subject: [PATCH 1/2] =?UTF-8?q?=EB=AC=B8=EC=84=9C=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EA=B0=9C=EC=88=98=EC=97=90=EC=84=9C=20=ED=99=95=EC=9E=A5?= =?UTF-8?q?=EB=B3=80=EC=88=98=20=ED=8C=8C=EC=9D=BC=20=EA=B0=9C=EC=88=98=20?= =?UTF-8?q?=EC=A0=9C=EC=99=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/document/document.controller.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/document/document.controller.php b/modules/document/document.controller.php index 87842afcd..4d154679d 100644 --- a/modules/document/document.controller.php +++ b/modules/document/document.controller.php @@ -694,7 +694,7 @@ class DocumentController extends Document unset($obj->user_id); } - $obj->uploaded_count = FileModel::getFilesCount($obj->document_srl); + $obj->uploaded_count = FileModel::getFilesCount($obj->document_srl, 'doc'); // Call a trigger (before) $output = ModuleHandler::triggerCall('document.insertDocument', 'before', $obj); @@ -991,7 +991,7 @@ class DocumentController extends Document if(($obj->title_color ?? 'N') === 'N') $obj->title_color = 'N'; if(($obj->notify_message ?? 'N') !== 'Y') $obj->notify_message = 'N'; if(($obj->allow_trackback ?? 'N') !== 'Y') $obj->allow_trackback = 'N'; - $obj->uploaded_count = FileModel::getFilesCount($obj->document_srl); + $obj->uploaded_count = FileModel::getFilesCount($obj->document_srl, 'doc'); // Call a trigger (before) $output = ModuleHandler::triggerCall('document.updateDocument', 'before', $obj); @@ -3769,7 +3769,7 @@ Content; $args = new stdClass; $args->document_srl = $document_srl; - $args->uploaded_count = FileModel::getFilesCount($document_srl); + $args->uploaded_count = FileModel::getFilesCount($document_srl, 'doc'); executeQuery('document.updateUploadedCount', $args); } } From dda4d8fbf9207e785ebbea131667863330e992e3 Mon Sep 17 00:00:00 2001 From: dewekk <60457472+dewekk@users.noreply.github.com> Date: Tue, 17 Dec 2024 15:07:22 +0900 Subject: [PATCH 2/2] =?UTF-8?q?=EB=AC=B8=EC=84=9C=20=ED=8C=8C=EC=9D=BC=20?= =?UTF-8?q?=EB=AA=A9=EB=A1=9D=EC=97=90=EC=84=9C=20=ED=99=95=EC=9E=A5?= =?UTF-8?q?=EB=B3=80=EC=88=98=20=ED=8C=8C=EC=9D=BC=20=EC=A0=9C=EC=99=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/document/document.item.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/document/document.item.php b/modules/document/document.item.php index 35b49ded3..3b0b0043f 100644 --- a/modules/document/document.item.php +++ b/modules/document/document.item.php @@ -1460,7 +1460,7 @@ class DocumentItem extends BaseObject if(!isset($this->uploadedFiles[$sortIndex])) { - $this->uploadedFiles[$sortIndex] = FileModel::getFiles($this->document_srl, array(), $sortIndex, true); + $this->uploadedFiles[$sortIndex] = FileModel::getFiles($this->document_srl, array(), $sortIndex, true, 'doc'); } return $this->uploadedFiles[$sortIndex];