mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Update file count after copying document or comment with its files #2569
This commit is contained in:
parent
5e9cf872e7
commit
eaa0aee988
4 changed files with 63 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue