mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
#18616592 : even for manual_inserted comment, update comment count of document
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7201 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b7713f913b
commit
f32c96ccf7
1 changed files with 10 additions and 13 deletions
|
|
@ -197,23 +197,20 @@
|
|||
return $output;
|
||||
}
|
||||
|
||||
// 입력에 이상이 없으면 해당 글의 댓글 수를 올림
|
||||
if(!$manual_inserted) {
|
||||
// comment model객체 생성
|
||||
$oCommentModel = &getModel('comment');
|
||||
// comment model객체 생성
|
||||
$oCommentModel = &getModel('comment');
|
||||
|
||||
// 해당 글의 전체 댓글 수를 구해옴
|
||||
$comment_count = $oCommentModel->getCommentCount($document_srl);
|
||||
// 해당 글의 전체 댓글 수를 구해옴
|
||||
$comment_count = $oCommentModel->getCommentCount($document_srl);
|
||||
|
||||
// document의 controller 객체 생성
|
||||
$oDocumentController = &getController('document');
|
||||
// document의 controller 객체 생성
|
||||
$oDocumentController = &getController('document');
|
||||
|
||||
// 해당글의 댓글 수를 업데이트
|
||||
$output = $oDocumentController->updateCommentCount($document_srl, $comment_count, $obj->nick_name, true);
|
||||
// 해당글의 댓글 수를 업데이트
|
||||
$output = $oDocumentController->updateCommentCount($document_srl, $comment_count, $obj->nick_name, true);
|
||||
|
||||
// 댓글의 권한을 부여
|
||||
$this->addGrant($obj->comment_srl);
|
||||
}
|
||||
// 댓글의 권한을 부여
|
||||
$this->addGrant($obj->comment_srl);
|
||||
|
||||
|
||||
// trigger 호출 (after)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue