Update file count after copying document or comment with its files #2569

This commit is contained in:
Kijin Sung 2025-06-17 13:37:26 +09:00
parent 5e9cf872e7
commit eaa0aee988
4 changed files with 63 additions and 2 deletions

View file

@ -2002,6 +2002,8 @@ class FileController extends File
}
$this->copyFiles($obj->source->document_srl, $obj->copied->module_srl, $obj->copied->document_srl, $obj->copied->content);
$this->setFilesValid($obj->copied->document_srl, 'doc');
DocumentController::getInstance()->updateUploadedCount($obj->copied->document_srl);
}
function triggerAddCopyCommentByDocument(&$obj)
@ -2012,6 +2014,8 @@ class FileController extends File
}
$this->copyFiles($obj->source->comment_srl, $obj->copied->module_srl, $obj->copied->comment_srl, $obj->copied->content);
$this->setFilesValid($obj->copied->comment_srl, 'com');
CommentController::getInstance()->updateUploadedCount($obj->copied->comment_srl);
}
function triggerCopyModule(&$obj)